Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.1 [LEGACY]
-
None
-
cayenne-1.1M6, MS SQL Server
Description
My model has a to-one relation A->B that sometimes are empty. Is that
supported? How can I test if a B exist for a given A? Checking for
(a.getB() == null) does not work. It seems like a.getB returns a empty
object with every attribute set to null.
See:
http://objectstyle.org/cayenne/lists/cayenne-user/2004/05/0061.html
http://objectstyle.org/cayenne/lists/cayenne-user/2004/05/0065.html