Thread:
 JavaTypeMapper PB 
 ctof   17 Aug 2004, 11:38 
 Re: JavaTypeMapper PB 
 drosenbaum   23 Aug 2004, 18:57 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: drosenbaum (23 Aug 2004, 18:57) Replies: 0, Views: 39864
Subject: Re: JavaTypeMapper PB
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
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]