I'm trying to persist an entity using an identifier that will be generated by our system using custom generation.
I'm getting an error because it is trying to get the next sequence... the thing is I'm not using sequence generation, this is my mapping file:
Code:
<entity class="com.company.system.domain.impl.TransactionData">
<table name="TRANSACTION" />
<attributes>
<id name="id">
<column name="TRANSACTIONID"/>
</id>
<basic name="_dateCreated">
<column name="datecreated" />
<temporal>TIMESTAMP</temporal>
</basic>
</attributes>
</entity>
It is possible to disable auto id generation or using another behavior?
can you build a custom id generator?
thanks in advance.