dcsimg
EJB-QL with Date data type problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Eric_Chow
Posted On:   Sunday, July 14, 2002 07:05 AM

Hello, I defined a EJB-QL as following: findByPeriod java.util.Date java.util.Date <![CDATA[ SELECT OBJECT(a) FROM DailyCounterEJB a WHERE a.date BETWEEN ?1 and ?2 ]]> But it raised exception when deployment. Would you please to teach me how can define EJB-QL with DATE as the parameters for confitions. I am using JBoss3.0 + MySQL Best regards, Eric    More>>
			

Hello,

I defined a EJB-QL as following:


findByPeriod

java.util.Date
java.util.Date




<![CDATA[
SELECT OBJECT(a) FROM DailyCounterEJB a
WHERE a.date BETWEEN ?1 and ?2
]]>




But it raised exception when deployment.


Would you please to teach me how can define EJB-QL with DATE as the parameters for confitions.


I am using JBoss3.0 + MySQL

Best regards,
Eric

   <<Less

Re: EJB-QL with Date data type problem

Posted By:   sloolp_No  
Posted On:   Monday, July 15, 2002 08:23 AM

You can't use date you must use long

visit :

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBQL6.html#73143
About | Sitemap | Contact