• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie need help on GENERATOR

 
manoj kumar jena
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone
i am a newbie in Hibernate.
i have done some basic concepts like insert,update,delete.
Now, i have a confusion over GENERATOR.
i goggled up on this concepts everywhere i am getting the same lines of description,
which i don't understand.
so, kindly help me on the different types of generator and how they will generate the
IDs. please please please help me with an example for each and every type of generator.

EAGERLY WAITING FOR A REPLY.PLEASE HELP ME.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Hibernate documentation covers this. Tell us what you don't understand and we'll see if we can explain.
 
Mike London
Ranch Hand
Posts: 1220
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul is right, but you might also try a good Hibernate book.

One of my favorites is "Beginning Hibernate, from Novice to Professional", but there are lots of other good ones too.

Where generators have come to be important for me is when you have the database automatically generating Primary Keys for you for each row. In this case, you (may) need to modify the generator type that you're using.

A quick google search found this link that you might want to read too.

http://www.roseindia.net/hibernate/hibernateidgeneratorelement.shtml

Hope this helps.

Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic