1. one-to-one cascade save to table with assigned id forum.hibernate.orgHibernate version: 3.1 I'm trying to create a one-to-one association on a foreign key (described in the docs here). I want to set cascade="all" for this association. If I set up the following mapping file and run the code below, I get an exception. OneToOneAssignedTable has an "identity" primary key, and a one-to-one association to AssignedIdTable, which has an "assigned" primary ... |
2. Cascading breaks if parent table doesn't have Auto-inc forum.hibernate.orgConsider: - a table with an assigned PK (i.e. not auto-increment), let's call this "A" - Another table ("B") linked to the table listed above but with it's PK set to auto-increment. Now if you try to save B with cascading switched on, it will break. From the little debugging I've done it looks like: a) hibernate detects that A needs ... |
3. Why does update() not cascade to many-to-many table? forum.hibernate.orgHibernate version: 3.0.5 Mapping documents: Code: |