-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Timestamp type field in a table is coming as NULL in java.
PostPosted: Thu Dec 13, 2012 2:53 am 
Newbie

Joined: Thu Dec 13, 2012 2:30 am
Posts: 1
Hi All,
I'm new to Hibernate and currently using SEAM framework for displaying my table records.
I've JBoss 7.1 Brontes as AS, and Seam version 2.3.0.Final.
Hibernate jar used is Hibernate-core-4.0.1.Final.jar.

I've a field in my table of Timestamp data type. When i do reverse engineering, data type of this field is coming as Serializable in my entity class. I've tried to changed it to java.util.Date/java.sql.timestamp and then i was able to display a list of records of my table.

but when i tried to view a single record then i'm getting "value must be a date" error(javax.faces.converter.DateTimeConverter.DATE).
I've checked the value from the getter method of this field which is coming as NULL when i select a single record to view.

Please help me out and tell me where i'm doing it wrong.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.