Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in the ID GenerationStrategy

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

In JPA, when I have a GenerationStrategy of type TABLE and if I do not specify which is my generator, then the specification says that the provider will assume a table of its own choosing. What is actually meant by this?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that each persistence provider implementations may use a table of their own choice. For example, Hibernate might choose "BLAH" as the table name to store the primary keys whereas other implementations may use some other name for the table.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting to know. I will be trying out that tonight.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic