My main aim is to persist the web service objects. So changing the web service classes is not allowed. My hibernate mapping are configured to generate the DB.
So what I have is
My hbm file is
So since I cant have my purchase order varibale as object in invoice and declare my one-to-one relationship, can i add something else that will enforce a foreign key behind property name="purchaseOrderID".
I cant change this property to a purchase order object and this is not open to negotiation. Any pointers here would be much appreciated. I bet its simple but i cant figure it out