Mapping Associations using composite-key element ,property-ref attribute and <formula> element
Sandeep Vaid
Ranch Hand
Joined: Feb 27, 2006
Posts: 390
posted
0
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: 390
posted
0
If i don't use seperate class for composite-id, then it is working fine :