-->
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: register a custom type without subclassing the dialect?
PostPosted: Thu Oct 02, 2008 11:27 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 8:07 pm
Posts: 229
Location: Brisbane, Australia
We use a couple of cutom UserType objects in our system.

At the moment, we register them globally with Hibernate by subclassing a particular Dialect (say, OracleDialect, for example) and then calling the registerColumnType(int code, String name) method during construction.

But, now we want to make our app run on two different databases.
Is there any way to register our custom UserTypes?

The UserType registration is the only reason we subclassed the dialect, so if we could find another way to register types, we could eliminate that class.
I don't really want to write a dialect subclass for each database we want to support.

_________________
Cheers,
Shorn.


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.