1. Newbie - Oracle primary key triggers forum.hibernate.orgHi everyone, Thanks for the replies, but I'm confused. If I try: |
2. Oracle-generated-primary key forum.hibernate.orgHi, I'm working with Oracle and am new to hibernate. I have a table with an Oracle-generated-primary key. No other columns or column-groups are unique, so I can't use "generator class select". How can I get the Oracle-generated-primary key in return when saving a new object. In my object to store, I set id = 0. Serializable ret = getSession().save(entity); I ... |
3. Using Oracle Trigger for generating primary key BeforeInsert forum.hibernate.orgI want to use oracle trigger for generating the primary key before inserting data to a table. eg: TRIGGER_BEFORE_INSERT and that trigger uses an oracle sequence to generate primary key what should i use for generator class in my hbm file. I tried using generator class = select but that doesn't seem to work. Could some one please help me with ... |