9

Anyone know of some good tutorials on how to create a custom ID generator for hibernate?

mainstringargs
  • 13,563
  • 35
  • 109
  • 174

3 Answers3

12

A cursory search of Google for 'hibernate custom id generator tutorial' turned up the following possibilities. I've excluded those that don't look useful and summarized the content of each.

Hope that helps.

Community
  • 1
  • 1
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
  • Unfortunately the links in this answer are dead. – florin Jan 23 '11 at 07:37
  • @florin, that's the price you sometimes pay for linking outside of SO :-) Actually, the first and the last were still there. The second had moved so I've updated the link. The third I couldn't locate again so I've just deleted it completely. – paxdiablo Jan 23 '11 at 08:12
2

http://resource.visual-paradigm.com/vpsuite2.3sp1/custom_id_generator.html

Though this link demonstrates Visual-Paradigm tool for generating Custom ID generator, but the idea of Hibernate Custom ID generator can be learnt from the same

Rutesh Makhijani
  • 17,065
  • 2
  • 26
  • 22
1

I found this one by Jiaqi Guo:

http://blog.cyclopsgroup.org/2007/04/custom-idgenerator-for-jpa-gap-between.html

Simon Gibbs
  • 4,737
  • 6
  • 50
  • 80