• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic