I posted this as a feature request on the hibenate jira, and Christian Bauer pointed me to the following as an alternative (which doesn't solve the problem):
http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Query.html#setProperties(java.lang.Object) (here is the issue: http://opensource.atlassian.com/projects/hibernate/browse/HHH-715) So the question now becomes, can Andromda support using that method, somehow? There could be a tagged value to indicate that the finder method needs to use that method, and the template would need a corresponding change to use the query.setProperty(Entity) method. Alternatively, you could do it without a tagged value, and just figure out that if the finder takes as an argument the same type as the return value (or the owning entity), that it has to try to fill in the named parameters in the HQL. At least I would find that useful :) _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2173#2173 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