Quote: What's the problem with modeling a criteria query then? (end of quote)
We don't want to have to pass a criterion in as an argument. The criterion-finders generated by Andromda have signatures like Entity find(Criteria). Quote: 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"? (end of quote) Yeah, I kind of realized this because it would be difficult if not impossible to create the right HQL query anyway...I'm pretty sure at this point that HQL doesn't let you do that. Wouldn't it be nice, though? This answers my question, so what I'm doing is just coding it in the DaoImpls by hand. It isn't hard, but I wanted to make sure I wasn't doing unnecessary work. Thanks for the help. _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2167#2167 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