Reputation: 452
Can I configure Hibernate not to do the select seq.nextval from dual as separate call before the actual insert ?
org.hibernate.jdbc.AbstractBatcher about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
org.hibernate.SQL select SEQUENCE_1.nextval from dual
org.hibernate.id.SequenceGenerator auditor50 - Sequence identifier generated: 122797
org.hibernate.jdbc.AbstractBatcher auditor50 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
<class..>
<id column="ID" name="id" type="long">
<generator class="sequence">
<param name="sequence">SEQUENCE_1</param>
</generator>
</id>
</class>
Upvotes: 3
Views: 1710
Reputation: 691625
I don't think this is possible. But I don't know what difference it would make. If you want to do this for performance reasons:
Upvotes: 1