Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes how xdoclet can create composite-id ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "how xdoclet can create composite-id ????" Watch "how xdoclet can create composite-id ????" New topic

how xdoclet can create composite-id ????

Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
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 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

kill your pride, share your knowledge with all
Don't get me started about those stupid light bulbs.
subject: how xdoclet can create composite-id ????
Similar Threads
Adding data using hibernate for Composite primary keys
many-to-one relationship to non-PK field
Composite Key and update: update never executed
Hibernate Criteria and composite key
[Hibernate] One-to-many batch updating?