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
|