0

I am migrating a Hibernate project from using mapping files to use annotations. Is there any tool that let me compare both mappings, for example a tool that generate XML mapping files from annotations?

Using another wording. Is there any way to assure that the new annotated project will behave exactly as the project using the mapping files without running it?

2
  • Why do you want to migrate? There are still a few advantages of xml mapping files. Just a minute ago I had to recommend the usage of xml mappings because annotations sometimes don't offer that flexibility. Commented Mar 8, 2013 at 10:06
  • My impression is that they are far easier to learn and use because Java editors like Eclipse offer help and auto completion for annotations. Furthermore annotations in Java code are easier to maintain because you keep related things together and when you change pojos is more difficult to forget that perhaps you have to change mappings as well. Commented Mar 11, 2013 at 18:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.