Thank you for the reply.

I am overloading the HibernateJavaTypeMapper method getPreferredJavaType(), as 
mentioned in 98.html on the hibernate site. Problem is, even after changing the 
build.xml to point to my new javaTypeMapper class, it still does not get called. I 
have tried putting in println() statements and specifying bogus java classes, yet 
everything compiles fine.

Has anyone done this before? And if possible, could you provide a reference?

Jonathan Scott


On Wed, 11 Aug 2004 21:48:30 -0700 (PDT)
Chintan <[EMAIL PROTECTED]> wrote:

> Yes, I did this for Oracle. See the, sql2java.java
> file.
> 
> best,
> Chintan
> 
> --- [EMAIL PROTECTED]
> wrote:
> 
> > Send middlegen-user mailing list submissions to
> >     [EMAIL PROTECTED]
> > 
> > To subscribe or unsubscribe via the World Wide Web,
> > visit
> > 
> >
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> > or, via email, send a message with subject or body
> > 'help' to
> >     [EMAIL PROTECTED]
> > 
> > You can reach the person managing the list at
> >     [EMAIL PROTECTED]
> > 
> > When replying, please edit your Subject line so it
> > is more specific
> > than "Re: Contents of middlegen-user digest..."
> > 
> > 
> > Today's Topics:
> > 
> >    1. mapping DB types to Java types (Jonathan
> > Scott)
> > 
> > --__--__--
> > 
> > Message: 1
> > Date: Thu, 12 Aug 2004 10:25:20 +0900
> > From: Jonathan Scott <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Organization: Vanten
> > Subject: [Middlegen-user] mapping DB types to Java
> > types
> > Reply-To: [EMAIL PROTECTED]
> > 
> > Hi All,
> > 
> > Looking through the MiddleGen site, I am worried it
> > is not at all possible to force certain DB types to
> > specific Java classes. 
> > 
> > PostgreSQL has a type "inet" which is an IP address.
> > MiddleGen does not understand this type and thus
> > marks it as "Object" in our hbm.xml files. We would
> > like to map it to another class.
> > 
> > Is there any configuration file/option etc. that I
> > could use to achieve this? Any pointers would be
> > more than welcome.
> > 
> > TIA,
> > Jonathan Scott
> > 
> > 
> > 
> > --__--__--
> > 
> > _______________________________________________
> > middlegen-user mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> > 
> > 
> > End of middlegen-user Digest
> > 
> 
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to