• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generator Class

 
niranjanT TalluruN
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI every one,

I have a doubt regarding Generator Class in hibernate.
I want to write my own Generator class. And i did that by implementing
interface provided by hibernate. But i am unable to map that class in the
<generator> tag..

Can any one can tell me where i have to place that class and how to map in generator Tag.

thanks in advance
Niranjan
 
GS Chidam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Generally generator class we can use to generate primary id.

What you are doing in your class? generating id?
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so how do you configure it ? your code, your mappings ? exceptions ? error messages ?


i would guess that you just have to specify the fully qualified classname in the "generator-class" attribute ?


pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic