I've got an Oracle 10g table that has one surrogate primary key and a couple of other columns. For the primary key, I'm using an Oracle sequence to populate the value. Easy enough.
However, I'd like to use another Oracle sequence for another (non-primary or foreign key) column in the table. While this second generated field is not used for any table joins and has no meaning within the database and application, it will have some meaning to external systems. Basically, the external systems will be using this second generated id as their identifier.
Is there a way to do this in Hibernate 3.2.3? I looked at the DTD, and the generator tag is only valid inside the id tag.
Thanks for your input.
Sean
|