• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate with 2 column id  RSS feed

 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
Please I just want to find out if it's possible to incorporate id's in Hibernate, if 2 columns of the table makes the Primary Key.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Map it as a composite key.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!