As someone else reported, it would be handy to have an ant task which adds all the mapping entries for all annotated classes to hibernate.cfg.xml. While it's not easy to determine all the classes annotated with Entity at runtime, it looks like it should be possible to build something to do this by using the APT tool that comes with the JDK 5. Is anyone already working on something like this? Does this seem like a reasonable approach? If I get something done, what's the appropriate way to contribute it?
Thanks,
Chris
|