i'm creating my db model using hibernate tools in eclipse. My database has two table, without foreign key:
I import my db in eclipse using the hibernate configuration file, and i obtain three java objects:
I have to define a relationship between these two objects, in order to use then in the model: Customer 1-n Sales.
How i have to create this relation?
I tried to use this structure, but it doesnt work, mybe because i don't have a foreign key on the db:
<set name="customersales" inverse="true">