Hibernate Team |
|
Joined: Tue Aug 26, 2003 6:10 am Posts: 8615 Location: Neuchatel, Switzerland (Danish)
|
ReverseEngineeringStrategy, OverrideRepository and OverrideBinder is where most of the magic around this happens. JDBCReader and JDBCBinder is the one actually doing the reverse engineering.
what is needed is that the reverse engineering gets the notion of a native database type as an addition to how the resulting type is selected.
They do the matching against a reverse engineered column to the relevant hibernate type. This would need to get an additional parameter when looking up - and the one with the best match wins.
The biggest issue is that we don't have a good place to put the reverse engineerd native type since if we place it on the column it will leak into the generated templates where it will be redundant and not always apropriate to list it. Thus there need to be some additonal column info stored somewhere.
_________________ Max
Don't forget to rate
|
|