-->
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.  [ 2 posts ] 
Author Message
 Post subject: timestamp problem
PostPosted: Tue Apr 20, 2004 3:52 am 
Regular
Regular

Joined: Fri Jan 16, 2004 4:48 am
Posts: 56
I am facing a stange problem.

I have createdDate method as java.util.Date. However, in the hbm mapping, I define it as type "timestamp". I am trying to insert a graph of objects (bidirectional using Set) with Flush mode as commit. Each of these objects have the createdDate set/get

I have an Interceptor that sets createdDate in the onSave method.

The inserts work fine if i define the mapping type as either "date" or "time". However, when I define it as timestamp, I start getting errors.
Somehow the foreigh key constraint is broken for the object graph.

Has anyone faced this kind of problem ?

Thanks
Shishir


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 6:31 pm 
Regular
Regular

Joined: Fri Jan 16, 2004 4:48 am
Posts: 56
Never mind. This is a jdbc issue.


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

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.