[jboss-user] [JBoss Seam] - Re: Seam Pros - Need your opinion...Date vs Long
matt.drees
do-not-reply at jboss.com
Thu Sep 13 12:48:52 EDT 2007
I'm fine with storing dates in the database. But if I had to store longs, I'd look into using Dates in my java object and mapping it to the database using a custom type. I haven't tried it, but I'm pretty sure that'd work.
If you decide to stay with having two properties, mark the Date one @Transient, and it won't show up as a column.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084078#4084078
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084078
More information about the jboss-user
mailing list