Hi,
How should I configure the id generator when using an insert trigger with Oracle? I cannot use the "sequence" generator as the trigger is retrieving the nextval for me prior to the insert:
BEFORE INSERT ON xxx.TRADES
FOR EACH ROW
BEGIN
SELECT SEQ_TRADES.NEXTVAL
INTO :NEW.TRADE_ID
FROM DUAL;
END TRG_TRADES;
The Hibernate doc suggests a "select" generator:
<id name="id" type="long" column="person_id">
<generator class="select">
<param name="key">socialSecurityNumber</param>
</generator>
</id>
But NHibernate doesn't seem to support it, returning the exception on the assembly load:
NHibernate.MappingException: could not instantiate id generator for strategy 'select' ---> System.TypeLoadException: Could not load type select from assembly NHibernate...
Anyone have any guidance for the situation?
Thanks,
Steve
|