-->
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: typemapping problem in hbm2java
PostPosted: Wed Jan 12, 2005 12:08 am 
Newbie

Joined: Tue Jan 11, 2005 11:53 pm
Posts: 1
Location: Singapore
DataBse: Firebird.

I am using MiddleGen to generate HBM files, In a hbm mapping file there is a field 'createtime' of type timestamp .
the hbm file for this field looks like
<property name="createtime" type="java.sql.Timestamp"
column="CREATETIME" not-null="true" length="19" />

when hbm2java utility used to generate java files, the type of this property becomes java.util.Date.

Is there anyway to configure hbm2java to change java.util.Date to java.sql.Timestamp.


Thanks in Advance.
Abdullah.S


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.