mapping DB types to Java types

Jonathan Scott <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization Vanten
Message-ID <[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


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.