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

Hibernate annotation equivalent for <composite-id> tag

 
Vighy Prabhu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a table made up of 4 columns. There's no primary key column on the table, But every row will be unique if each of the columns make up the <composite-id>

I'm planing to get my classes mapped using annotations, but can't seem to find the annotation equivalent for <composite-id>

Any suggestions?


Thanks,
Vighnesh
 
Charan kumar sarvepalli
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

please go thru this link it may help you.

http://docs.jboss.org/hibernate/stable/annotations/reference/en/html/entity.html#d0e1700
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic