Discussion:
[Middlegen-user] mapping DB types to Java types
Jonathan Scott
2004-08-11 23:26:00 UTC
Permalink
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

Loading...