Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Re: Struts/Hibe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 1339 of 1397
Post > Topic >>

Re: Struts/Hibernate and date troubles

by Deepak Srivastava <deepaksrivastavaz@[EMAIL PROTECTED] > Feb 27, 2008 at 08:44 AM

Hi  Thomas,

The issue you addressed is simply of type conversion,
I suggest you to take the appropriate type at JAVA end,
i.e.; declare the "birthDate" as of type TimeStamp in corresponding
JAVA bean, and there's no need to explicitly mention the type in
hibernate mapping file for any of the property,
as this ORM tool is smart enough to handle the conversion between Java
type and DB type.

And other thing is, you shouldn't try to use the form beans as
persistence objects,
as both the things are supposed to serve different purposes. You can't
use these two interchangeably.

Will discuss more next time, till then solve this issue.

Hope this answers your question.

--Deepak
 




 5 Posts in Topic:
Struts/Hibernate and date troubles
fthomas <thomas.fazeka  2008-02-17 05:31:12 
Re: Struts/Hibernate and date troubles
Donkey Hot <spam@[EMAI  2008-02-17 16:38:20 
Re: Struts/Hibernate and date troubles
fthomas <thomas.fazeka  2008-02-18 01:11:33 
Re: Struts/Hibernate and date troubles
Deepak Srivastava <dee  2008-02-27 08:44:17 
Re: Struts/Hibernate and date troubles
Deepak Srivastava <dee  2008-02-27 08:46:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:13:28 CDT 2008.