Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Entity relationships and data inconsistency

Hello all,

imagine an entity A which has a ManyToOne relationship to an entity B.
Consider a record of A which contains an invalid foreign id of B.

When find()-ing A, the reference to B is set to null, even the underlying column contains an id. With the consequence that an application cannot distinguish between a true null foreign key and a data inconsistency situation.

Is there any way to detect these with eclipselink? Am I missing something?

Thanks.

- Patric


Back to the top