[ http://jira.andromda.org/browse/HIB-107?page=comments#action_11655 ]
     
Walter Itamar Mourão commented on HIB-107:
------------------------------------------

There is another issue related with the use of the set<datatype> functions in 
Hibernate: it is not possible set the parameter value to null. Really there is 
an issue using the setParameter(int position, Object val) function too: setting 
the null only works with String type parameters. I strongly suggest  the use of 
setParameter(String name, Object val, Type type) and setParameter(int position, 
Object val, Type type) when using non primitives arguments' types.

> Finder method with wrong code
> -----------------------------
>
>          Key: HIB-107
>          URL: http://jira.andromda.org/browse/HIB-107
>      Project: Hibernate Cartridge
>         Type: Bug
>     Reporter: Walter Itamar Mourão
>     Assignee: Martin West

>
> The following code was generated:
>               query.setInteger(4, idRamoAtividade);
> but "idRamoAtividade" is java.lang.Integer and setInteger expects int as 
> second parameter.

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



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
Andromda-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to