1. Composite Foreign Key lost in merge() operation (JPA/Hibernate) stackoverflow.comImagine an
|
2. Composite Foreign Key lost in merge() operation forum.hibernate.orgHi Michael, Thank you for the suggestion. I tried a couple of cascade options, but that didn't help: @ManyToOne(cascade = CascadeType.ALL) @JoinColumns({ ... }) => Is the above what you had in mind? Is this really the purpose of "cascade"? From what I understand, the above would persist the Dept atributes whenever I save the Employee. Notice that I my case, ... |
3. XDoclet, composite id's and ant merge dirs forum.hibernate.orgHibernate version:2.0 Hi, Im having some trouble using xdoclet with hibernate and composite identifiers. I managed to figure out that xdoclet has no support for composite id's with hibernate and one way of 'getting' the id into the hbm.xml file without doing it by hand is to use the merge dir in the ant script. The merge dir would include the ... |
4. Issues with Merge with Composite key children forum.hibernate.orgHi Forum, I have been using hibernate relationships in my project quite often. Here is this new issue that I got into. I have given a sample mapping file. FIRST_PARENT contains (1-n) SECOND_PARENT, and SECOND_PARENT contains (1-n) FIRST_CHILD(composite keyed) records. The Scenario is, FirstParent object is already loaded in the session and I have some new SecondParent objects to add ..so ... |
5. merging an object with a set of composite elements forum.hibernate.org |
6. composite-id, sequence and merge problem forum.hibernate.orgNewbie Joined: Fri Jan 18, 2008 12:34 pm Posts: 9 Hello, I got problem during the migration process from HB 2 to 3.2.5. We use Oracle as DB, problem happens when calling merge on a persistent entity A. This instance A has a relation (one-to-many) to another entity B, this instance is transient and has a generated id (from an oracle ... |