[ 
http://team.andromda.org:8080/jira/browse/HIB-5?page=comments#action_10461 ]
     
Fred Chapuis commented on HIB-5:
--------------------------------

Having FinderMethods with entity parameters could be handled using the 
setEntity method of the Query interface.
I changed the HibernateEntityFactory.vsl template (see snippet below) and it 
seems to work fine.
It desn't solve the problem for other datatypes described by Walter however.

Replaced the last foreach loop by this one :
#foreach($argument in $finder.arguments)
#set ($argType = $argument.type)
#if ($argType.stereotypeNames.contains("Entity"))
#set ($index = $velocityCount - 1)
  query.setEntity(${index}, ${argument.name});
#else
#set ($index = $velocityCount - 1)
  query.${argument.queryArgumentNameSetter}(${index}, ${argument.name});
#end
#end


> Query parameters in finder methods
> ----------------------------------
>
>          Key: HIB-5
>          URL: http://team.andromda.org:8080/jira/browse/HIB-5
>      Project: Hibernate Cartridge
>         Type: Bug
>     Reporter: Walter Itamar MourÃo
>     Assignee: Matthias Bohlen

>
>
> The generation of the code (parameter values settings) inside the finder 
> method does not work if the model does not use java data types.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://team.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to