-->
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: Mapping a custom class with hibernate date type ?
PostPosted: Wed Feb 16, 2005 3:02 pm 
Newbie

Joined: Wed Feb 16, 2005 10:40 am
Posts: 1
Hi All,

Is it possible to map a custom class of mine CalendarDate directly to date hibernate type.

Why ?
Because I would like the efficiency of SQL Oracle date management but I don't want to use Java Date because as they are TimeZone sensitive.

The solution I'm using is :
- not saving CalendarDate
- saving instead java date with always the same TimeZone.
- converting java date to CalendarDate

Any advice would be welcome.

Thanks

Joel



Hibernate version: 2.1.7

Mapping documents:none

Code between sessionFactory.openSession() and session.close():none

Full stack trace of any exception that occurs:none

Name and version of the database you are using:Oracle 9i

The generated SQL (show_sql=true):none

Debug level Hibernate log excerpt:not applicable


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 16, 2005 3:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use a custom UserType


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.