>I was wondering whether you couldn't use the DatabaseMetaData object to
>dynamically java objects directly from the database connection, if the
>driver supports it. One advantage I see is that it might better support
>handling non-standard types as the driver maps the database specific
>type to a Java equivalent one, which is what you want in any case. I
>haven't played with it a whole lot, but it seems like you could check
>table schemas and keys.
Unfortunately, you can't do ORMapMaker's code generation based only
on the metadata. It needs to know what you want to call the to-many
relations, and also what Java types you want to use for different
columns (which might not match the default... I might want a NUMBER
column to represent a Boolean). That is, all the stuff that
ORMapMaker reads out of comments in the schema won't be available in
metadata.
So, while DatabaseMetaData is nice in principle, I'm not sure exactly
what you want to use it for here...?
-ds
____________________________________________________________
David Soergel [EMAIL PROTECTED]
Department of Genetics http://www.lorax.org
Stanford University School of Medicine (650) 303-5324
____________________________________________________________
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]