On 17 Aug 04 11:38, ctof wrote:
>I try to define my own JavaTypeMapper.
>i set the value of my class to the property "javaTypeMapper" in the
>hibernate section of my ant file.
>then i start middlengen via ant and it seems that my mapper is never
call.
>more exactly, the constructor is called, but the method
>"getPreferredJavaType" is never called
>any idea ?
>thx in advance
>Christophe
As stated in the Hibernate Middlegen doc, the only time the
javaTypeMapper is called is the first time a new table is mapped. All
subsequent times the saved types are used and the mapper is not called
again.
Perhaps delete your prefs file to "fool" middlegen into thinking this
is the first time.
Daniel |