tzman wrote:
That was really my point.
So the question is whether to use the reverse engineering file or something along the same lines.
There is a big difference in going from XMI (object/classes level) to mappings or go from JDBC (metadata/table level) to mappings.
I thought the XMI was what you wanted ?
What about just using the hbm.xml and get it to generate schema and code from which you can get XMI in other tools ? :)
Quote:
1.) Generation of artifacts in packages. -- This can be done with a naming strategy.
eh - you set the default package name and it's done.
Quote:
2.) Ability to set default mappings at the project level. -- Example: A project wants all timestamps to use Joda-Time, or all ids use a specified UserType.
<type-mapping> and for anything more advanced use a custom revengstrategy.
Quote:
3.) Ability to automatically discover inheritance of tables and the strategy to use.
where in the jdbc metadata would you find information to do that ?
Quote:
4.) Automatic generation of enums based on column constraints. This may be simple yes_no type or specific values.
should be doable - but again it requires some "magic".
Quote:
5.) Support generation of Proxy interfaces.
why ? anyway it is doable.
Quote:
6.) Generate a portion of a project, if referenced entities already exist, create the mapping.
what does that mean ? if it already exist create it again ?
currently it is bulk generation.
Quote:
7.) Automatic generation of hashCode and equals.
<meta attribute="use-in-equals">true</meta> for the properties you want to use. Anything that uses e.g. id's will generate non-valid equals/hashcode methods.
Quote:
8.) Discover and generate mappings for join tables.
Same as #3
Quote:
9.) Generate annotations for validation.
seam-gen does that already based on (some) schema data.