-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Tue Nov 04, 2008 11:11 am 
Newbie

Joined: Sat Nov 01, 2008 1:19 am
Posts: 5
Max,
Unfortunately DataDirect drivers for Oracle work the same as the ojdbc14.jar driver. They marshall the TIMESTAMP(6) oracle type to java.io.Serializable when reverse engineering. I would be will to look into creating the patch you are suggesting. Could you be more specific as to the requirements?

Thanks
Jerry


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 05, 2008 6:15 am 
Hibernate Team
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.