[Building Sakai] hibernate composite-id (promary key and foreign key)

Alessandro alessandro at imaxgames.com.br
Wed Jul 1 10:43:10 PDT 2009


composite-id (promary key and foreign key)

I have 3 tables

Table1(IDTB1,NAME)PK->IDFIELD

Table2(IDTB1,IDTB3,OPTION) PK(IDTB1,IDTB3) FK(IDT3) references Table3(IDT3)

Table3(IDTB3,TIPO)PK->IDTB3


I would like how to know write mapament O/R for table 2 ,I don't use
annotations but xml for mapament O/R .
Other .

Another thing a composite key become a  class ?

There is any example this mapament?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090701/aea899c8/attachment.html 


More information about the sakai-dev mailing list