• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!