Hi Guys,
I have a case where i have a ManyToOne as in:
Code:
@ManyToOne @JoinColumns({@JoinColumn(name="ITEM_NR"),@JoinColumn(name="PSI")})
private Item item;
but the actual value in the foreign key columns do not match any instances of the primary key columns in the target table.
I would like this to just be ignored by hibernate and the ManyToOne property to just be set to null. But hibernate throws an exception instead.
Is there anyway of getting hibernate to ignore this mismatch and just return an object with the relavent ManyToOne property set to null?
Thanks in advance.
J