This content has been marked as final.
Show 3 replies
-
1. Re: Strange queries in Many to One relationship
dsundstrom Jun 24, 2002 4:17 PM (in response to brown1d)What exactally is wrong with the query?
-
2. Re: Strange queries in Many to One relationship
brown1d Jun 25, 2002 9:17 AM (in response to brown1d)As part of the creation of the CustomerEJB it does the following:
CustomerStatus status = CustomerStatusHome.findByPrimaryKey(1);
This seems to be where the problem occurs. It looks up that CustomerStatus entity, and then all the Customers with that status.
It is the second part I wish to stop.
Dave. -
3. Re: Strange queries in Many to One relationship
dsundstrom Jun 25, 2002 1:27 PM (in response to brown1d)Relationships user referencial integerity, so the container need to verify that there are no entities assigned to this relationship in the database. There is no way to disable it, as without the check you can end up with an inconsistent database state.