even after providing the relationsship column info its not working properly
when i try to load a MedCustomer , I get
SEVERE: IllegalArgumentException in class: com.medapp.util.CustomerDetail, setter method of property: parentcustID
SEVERE: expected type: int, actual value: com.medapp.util.MedCustomer
forcing me to change the setter method in CustomerDetail with MedCustomer as argument (although it does work in that case, but isnt that suppose to be handled by hibernate itself)
Secondly incase I change setter .. Its giving error when i try to persist a new MedCustomer Object
Field 'CUST_ID' doesn't have a default value
Am I missing here something?