Below is my composite key in my StoreLocation class
StoreLocation Class contains --->
Code:
<composite-id name="id" class="StoreLocation">
<key-property name="store_id"/>
<key-property name="storeLocId"/>
</composite-id>
and I added a getter and setter for "id" in my StoreLocation java bean
and my Sales Class I have the below since this is joining to the StoreLocation class with the composite key
Store Class contains--->
Code:
<many-to-one name="storelocation" class="StoreLocation">
<column name="store_id"/>
<column name="storeLocId"/>
</many-to-one>
and I added a getter and setter for "storelocation" attribute in my
but i get an error:
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.dao.StoreLocation#com.dao.StoreLoaction@1f2c60d]