cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-132) Intelligent lazy fault detection
Date Thu, 16 Jul 2009 13:58:14 GMT

     [ https://issues.apache.org/jira/browse/CAY-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik updated CAY-132:
--------------------------------

    Summary: Intelligent lazy fault detection  (was: missing toOne)

>From a dev list post by Andrus:

"Periodically running into bugs with optional to-one relationships when people forget to check
to-dep-pk checkbox, and end up having FaultFailureExceptions. The issue is as old as Cayenne
(see for instance CAY-132). They way I think we should fix it is by introducing another method
"ObjRelationship.isOptional()" which is logically not the same as 'isSourceIndependentFromtTarget()',
for use inside DataDomainQueryAction."

> Intelligent lazy fault detection
> --------------------------------
>
>                 Key: CAY-132
>                 URL: https://issues.apache.org/jira/browse/CAY-132
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 1.1 [LEGACY]
>         Environment: cayenne-1.1M6, MS SQL Server
>            Reporter: Tore Halset
>            Assignee: Andrus Adamchik
>            Priority: Critical
>             Fix For: Undefined future
>
>         Attachments: CAY-132.tar.gz
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message