I'm using EJB CMP in my first JBoss project against a MySQL database. 

As standard EQL cannot employ DATE types as part of its query am I right in thinking 
that I should be storing my dates as Long values? that way I use standard numeric 
operands to enable EQL retrievals, right?

I can use the 'Calendar.getTimeInMillis' to find the date 'Long' value and then store 
this to the MySQL table.

By the way is a Java 'Long' equivalent to a MySQL 'Integer'?

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826082#3826082";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826082>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to