1. Insert fk of an Association, not inserting the full Entity forum.hibernate.orgIs it possible to define the orm file a way to insert the foreign key of an association without inserting the full Entity. We currently have a Person object that has an Address association. On that Address definition we have insertable and updateable = false because we don't want to insert the Address object. We only want the Person table to ... |
2. FK cannot be saved while saving association forum.hibernate.orgHi, I have two classes: A and B. A has one-to-many bidirectional association with B. I did the following to save both A and B to db: (1) save B's (2) setBs (3) save A From what I saved into db, I found FKs for B are all null. I am wondering how I can save FK for B when save ... |
3. deleting association by PK instead of FK forum.hibernate.org |
4. Unidirectional one to many association on a FK forum.hibernate.orgHi, the documentation says that a Unidirectional one to many association on a FK is a very unusual case, and not really recommended. Instead the documentation recommends doing a unidirectional 1-to-M using a join table. I've looked in the forums and documentaiton, but cant find the reason why the join table approach is recommended? Can anybody explain this or point to ... |