Hi,
Has anyone ever come across the idea of hibernate mapping just using the up-coming metadata in JDK 1.5? I don't mean doing things like using xdoclet -- generating mapping files according to metadata -- in that case, you still have to keep an eye on the mapping file, worrying about misplacing it. I mean hibernate could genuinely treat the jdk1.5 metadata as the mapping itself, thus it really achieves putting-one-thing-at-one-place.
Wouldn't it be great that we don't even have to write the separated xml mapping files? (Although, we might still have to write the configuration file, but I guess 99% of the time is spent on the mapping files)
The user would only have to specify the CLASSes instead of the MAPPING FILEs in the configuration file. This will be great for both users and tool-makers.
Sorry I didn't give a very serious thought about the feasibility. However, I think since the current xml mapping file is organized on a class-members basis, which is exactly how the metadata is organized. This would give a very strong support for migration.
Any deas?
|