Thanks for the quick reply. I tried to add mappedBy="category" as you said but it did not help.
Now it looks like: @OneToMany( cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, mappedBy = "category" ) -- Al Try telling hibernate of the bidirection in the Category source you have to add mappedBy="category", like this: @OneToMany( cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, *mappedBy="category"* ) @JoinColumn(name="category_id" > > ) > public List<Item> items = new ArrayList<Items>(); David M. -- View this message in context: http://www.nabble.com/SQL-does-not-store-FK-when-implementing-OneToMany-relationship.-tp18560099s2369p18561540.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]