-->
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: help me, about sql2000 timestamp question???
PostPosted: Thu Apr 13, 2006 2:12 am 
Newbie

Joined: Thu Apr 13, 2006 1:56 am
Posts: 11
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:1.0.2

a column is timestamp type in the database.I need don't change dataBase structure.

what about mapping this column in the hbm.xml ?
what about mappint this column in the permanence class?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 15, 2006 3:39 am 
Beginner
Beginner

Joined: Mon Oct 24, 2005 2:45 am
Posts: 23
hibernate documenattion says you can use

<property name="dt" column="column name in table" type="java.util.Date" />

use following methods in bean
getDt
setDt

I tried like this.It is working for datetime data type in SQL Server.
But not working for timestamp

Hibernate experts ...!!
what is alternative for timestamp data type in SQL server.


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.