Changing class the determines Data type

"Daniel Rosenbaum" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Is there a way to specify a custom class that determines the data type
of a db table column?  I am using middlegen with the Hibernate plugin
and the default choices do not map well for Hibernate usage.  For
example, it may choose a nullible integer column to be a java int, while
it should really be an Integer since it is nullible.

Therefore it would be nice if I can implement some interface that
passes in the SQL type and I would return the datatype I would like to
use.  Is there functionality for this already?

Thanks,
Daniel


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
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.