Bugs item #792240, was opened at 2003-08-21 02:27
Message generated for change (Comment added) made by loubyansky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=792240&group_id=22866

Category: JBossCMP
Group: v3.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Martin Folb (mfolb)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: ParseException ejbQL Collection return type and BigDecimal 

Initial Comment:
When deploying an ejbQL query that has a 
java.util.Collection return type and a BigDecimal 
parameter, we get a ParseException. If we change the 
return type to a Local interface it works fine, if we 
change the parameter to another java type like Integer, 
it works fine. Must be a bug.

Thanks

Here is the ejbQl as defined in jbosscmp-jdbc.xml:

"
<query>
   <query-method>
       <method-name>
       <method-params>
             <method-param>java.math.BigDecimal
       </method-params>
       </method-name>
   </query-method>
   <jboss-ql><![CDATA[select object(o) from Invoice as 
o where o.amountCMP > ?1]]>
   </jboss-ql>
</query>

"

Martin Folb
WGCUSA
510 8126439
[EMAIL PROTECTED]



----------------------------------------------------------------------

>Comment By: Alexey Loubyansky (loubyansky)
Date: 2003-10-07 22:33

Message:
Logged In: YES 
user_id=543482

BigDecimal and BigInteger are not supported by EJBQL.
"An exact numeric literal is a numeric value without a
decimal point, such as 57, -957, +62. Exact
numeric literals support numbers in the range of Java long.
Exact numeric literals use the Java integer
literal syntax.
An approximate numeric literal is a numeric value in
scientific notation, such as 7E3, -57.9E2, or a
numeric value with a decimal, such as 7., -95.7, +6.2.
Approximate numeric literals support numbers in
the range of Java double. Approximate literals use the Java
floating point literal syntax."
Nevertheless, I added support for these types in 3.2.2RC5.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=792240&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to