-->
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: TypeFactory heuristicType strategy
PostPosted: Wed Oct 22, 2003 12:32 pm 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
Hi,

In the TypeFactory class, the heuristicType method try to guess the hibernate type that can persist an attribute based on is class.
I see in this method that if the type can not be found in the basic types, we try to find out if the attribute class is a kind of hibernate type.
It seems to me that adding to an attribute's class some hibernate stuf isn't a good practice : isn't it ?
Would it be possible to change this strategy and to search for a 'FooType' class that is an hibernate type if the attribute's class is 'Foo'. Thus, people who follow the rule of adding 'Type' after the class name can use their UserType transparently ?

Any comments on this idea ?

Seb


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.