How do I convert the following Oracle query to a hiberate?
select ccr_master_sq.nextval from dual;
Here's a WAG:
<id name="id" type="long" column="ccr_id"> <generator class="sequence"> <param>ccr_master_sq.nextval</param> <param>dual</param> </generator> </id>
Is this correct?
No, use
<generator class="sequence"> <param>ccr_master_sq</param> </generator>
Thanks,
Matt
You're welcome,
Ugo
-- Ugo Cei - http://www.beblogging.com/blog/
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel