-->
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.  [ 4 posts ] 
Author Message
 Post subject: Using CustomTypes to implement special datatypes
PostPosted: Thu Jul 22, 2004 3:10 pm 
Newbie

Joined: Fri Mar 26, 2004 8:44 am
Posts: 10
hi there,

I want to use a CustomType to implement the Oracle NVARCHAR/NCHAR/NCLOB datatype behaviour.
(which requires a special call before inserting/updating unicode characters - for details see http://forum.hibernate.org/viewtopic.ph ... t=nvarchar).

What class do I need to extend?
I found the description of the CustomType class in the docs, but it seems to be designed for use with polymorphistic relationships primarily.

How can I register an additional sql-type into Hibernate and use this sql-type in my hbm files?

thx alot
johannes


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 22, 2004 8:43 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 8:07 pm
Posts: 229
Location: Brisbane, Australia
Note sure if it's what you need exactly, but have you looked at UserType and CompositeUserType?

_________________
Cheers,
Shorn.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2004 2:02 am 
Newbie

Joined: Fri Mar 26, 2004 8:44 am
Posts: 10
thx for the hint, this is exactly what I needed.
I'll post the implementation of the UserType for the Unicode datatypes as soon as I have them.

johannes


Top
 Profile  
 
 Post subject: sample code link
PostPosted: Sun Sep 19, 2004 4:06 pm 
Newbie

Joined: Fri Mar 26, 2004 8:44 am
Posts: 10
you can find the answer/discussion here:
http://forum.hibernate.org/viewtopic.php?t=925490


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.