With the OCL queries, you can currently only return one or more of the entities 
from the entity that's the context (all OCL queries need to start with 
allInstances() -> select(<some expression>) at the moment, for example:




Quote:


            context 
MedicalCertificate::findInvalidByPerson(personId:Long,date:Date):Collection(MedicalCertificate)

            body findInvalidByPerson :

                allInstances() -> select( certificate |

                   certificate.person.id = personId

                   and (certificate.validityStart > date or 
certificate.validityEnd < date)

                   or (certificate.validityStart = certificate.validityEnd))

                   -> sortedBy(certificate.person.id)

                   -> sortedBy(certificate.validityStart)
(end of quote)




file a JIRA issue with the query you're attempting to execute and when I get 
some time I'll add support for those.
--
Chad Brandon - [EMAIL PROTECTED]

http://www.andromda.org
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2436#2436
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to