cascade
NHibernate cascading deletes in associated joined subclasses
I\'m currently working on a small PoC project and decided to take NHibernate for a spin for the persistence part.[详细]
2023-03-25 01:24 分类:问答NHibernate: Id not updated on cascading save
I have a couple of domain objects which I am trying to save using the Cascade functionality. However, when I add a child to a parent and save the parent, the child object is not saved.[详细]
2023-03-24 06:30 分类:问答postgresql - cascade copy/insert
I have a question about copying rows in PostgreSQL. My table hierarchy is quite complex, where many tables are linked to each other via foreign keys. For the sake of simplicity, I will explain my ques[详细]
2023-03-22 16:24 分类:问答Cascade delete and one-to-one mapping in hibernate
In a web application which creates Bill for SaleOrder for a Buyer, I tried to create database tables and hibernate mappings. The relationships between the entities are:[详细]
2023-03-22 09:10 分类:问答How to do a cascade save in hibernate
I have objects A and B. 开发者_如何学运维Object A is like class A{ Set<B> } Now when I save A I want that all objects in Set<B> of A should be automatically saved in DB. How can I do[详细]
2023-03-21 22:29 分类:问答using hibernate to delete publisher with no books
while writing a bookstore application ,I needed to put mappings for Book and Publisher classes. Book has n-to-1 relationship with Publisher.Also n-to-1 with Author .[详细]
2023-03-21 19:40 分类:问答Fluent NHibernate cascading conventions issue - deleted instance passed to update
I normally have everything set to cascade all by using a convention, like so: public class CascadeAllConvention : IHasOneConvention, IHasManyConvention, IReferenceConvention[详细]
2023-03-20 14:03 分类:问答Create a bidirectional ManyToOne relation
Hi I try to create a ManyToOne relation but get stucked. I have a BILL and a Booking Class The realation is :[详细]
2023-03-19 18:05 分类:问答Hibernate annotation Cascade problem
I have a Java class that contains a list of another class. @Entity public class Country { private Long id;[详细]
2023-03-18 03:40 分类:问答foreign key to non candidate key and on delete cascade
My question i开发者_如何学JAVAs two fold, firstly, is it possible to create a foreign key,in mysql, from a referencing table to a column in the referenced table that is not a candidate key ? I tried[详细]
2023-03-11 04:06 分类:问答