• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how xdoclet can create composite-id ????

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic