Joined: Tue Sep 20, 2005 3:51 pm Posts: 18 Location: Boston, MA
|
Hello all,
Does anyone know how I can assign a sequence to an @AssociationTable? I’m using Oracle9iR2 and the latest version of Hibernate. I just need to assign <MySequenceName>.nextVal to each id column of my join table.
I’ve mapped a @ManyToMany relationship and can read my objects perfectly, but have to resort to using triggers to persist newly created objects. The trigger is causing a problem with another trigger I need to add to fix a different issue.
I have full freedom to use EJB3 or an XML mapping if it gets the job done. I'm also not adverse to inserting custom SQL into the mapping. I'd appreciate any hibernate-related suggestions.
Thanks in advance,
Steven
|
|