Implementing a Custom ID generator for Hibernate entities in Java
If you have used Hibernate before you know that you can specify that an Entity class should have it's @Id fields set via @GeneratedValue - typically you use either a sequence or identity strategy to automatically generate, say, auto-incrementing inte...
code.zikani.me7 min read