• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Id Generation  RSS feed

 
pamir sonmez
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate Id can be generated by setting <generator class="identity" />
and can be assigned by setting <generator class="assigned" />

By using the same hibernate mapping, I want two save methods
one will save with generated id
and other one will save with assigned id

is it possible?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!