Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how xdoclet can create composite-id ????

 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys

my class have this definition for the variable that represents the composite key


thisi s the class that represents the composite key



i must declare @hibernate.id by exigence/demand of xdoclet , but no appear in the hbm.xml file, weird? or this is normal?
but i saw that xdoclet automatically creates this in the hbm.xml



how i conclude this??
well if i delete or comment thwse methods equals(Object o) and int hashCODE()
and try with xdoclet create the mapping files i recieve a lot of errors

by the moment i dont know how use xdoclet to create the correct way, like



so how i can have the application working???,
after the create the hbm, i copy manually the 2 <key-property
from my getAlmacenId() in the @MyNotes part
in the hbm file in the class folder

so if can help me how do this automatically , pls let me know

thanks for advanced
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic