0

Is there a possibility to convert my existing hbm.xml mapping to annotational mapping?

The goal is to get through an automatic mechanism all my xml mappings to annotational Mappings.

Xavi López
  • 27,550
  • 11
  • 97
  • 161
Artur Rem
  • 209
  • 1
  • 4
  • 18
  • possible duplicate of [Converting from Hibernate hbm.xml to annotations](http://stackoverflow.com/questions/962231/converting-from-hibernate-hbm-xml-to-annotations) – Xavi López Feb 04 '14 at 10:37
  • 1
    Indeed the advice in that link is the least bad; reverse engineer the entities new from the database schema and then manually go through them to fix all the annotations to what you need them to be. Its boring work, but nobody ever said that programming was all fun and games. – Gimby Feb 04 '14 at 11:47
  • We wrote a tool to automate all the boring parts: [You can find it here](https://github.com/SchweizerischeBundesbahnen/hibernate_hbm2annotation). – Marius Schär Dec 04 '18 at 11:05

0 Answers0