Wednesday, 20 April 2016

Scenario : Using custom ID generation


Scenario

If a user does not want to use any primary key generation facility provided by hibernate and underlying database but instead want to use own algorithm, how can this be achieved in Hibernate ?


Answer

By using generator type "assigned"

No comments:

Post a Comment

Note: only a member of this blog may post a comment.