This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Mapping Associations using composite-key element ,property-ref attribute and <formula> element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping Associations using composite-key element ,property-ref attribute and <formula> element" Watch "Mapping Associations using composite-key element ,property-ref attribute and <formula> element" New topic
Author

Mapping Associations using composite-key element ,property-ref attribute and <formula> element

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 392
I want, join should be performed on 3 properties out of which 2 are normal properties and one is part of composite key.
How can i specify these 3 properties inside <properties> tag ?

The problem is with useType mapping.
org.hibernate.PropertyNotFoundException: Could not find a getter for compProductBasicBO.useType in class com.tietoenator.lis.db.impl.product.bo.ProductBasicBO
at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)




Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 392
If i don't use seperate class for composite-id, then it is working fine :

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping Associations using composite-key element ,property-ref attribute and <formula> element
 
It's not a secret anymore!