Facing some sequence related issue after upgrading hibernate v4.3.10 to 5.0.7, we have hbm + jpa annotation mixed relation mapping. When we save any entity which is mapped using hbm.xml, hibernate is not picking the sequence name declared in the hbm, rather its picking from id using hibernate_sequence the following is the id declaration in hbm.
<id name="id" type="java.lang.Long">
<column name="ID" />
But at the same time entities annotated with jpa are working fine.
Is there anything changed in hibernate 5 which affects sequence generation were if sequence declared in hbm ?, Any help to solve this issue will be much appreciated.
Finally able to find the issue, adding here the solution, may be helpful for others.
should be replace with