Quote: With a criteria query, this is easy: (end of quote)
What's the problem with modeling a criteria query then? Quote: My question is, can this be done in a single line of OCL (end of quote) Probably not, I haven't tried doing something like that, not even sure if hibernate supports criteria's like "from foo as f inner join f.bar as b where f.attribute=:foo.attributeA and b=:foo.attributeB"? If Hibernate did, you could always just override the query in the base DAO class (If Hibernate does support those types of queries file a JIRA issue and I'll add that to the OCL translation) Quote: I was also wondering if anybody knew how to set up OCL queries in Poseidon (end of quote) I haven't used poseidon in a while, but you should just be able to create a constraint, add the name of the constraint and provide the body as the OCL expression, the other ones you shouldn't need to worry about (language or stereotypes). -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2166#2166 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user