I have an old project in which java classes are generated from hbm files.
Is it possible ,using these hbm files, to generate java classes with annotations?
I have an old project in which java classes are generated from hbm files.
Is it possible ,using these hbm files, to generate java classes with annotations?
We have had the same issue and solved it by using this hbm to annotation converter script https://github.com/SchweizerischeBundesbahnen/hibernate_hbm2annotation
You can use a hibernate reverse engeneering tool, but for generating annoted classes from database not from hbm's.
I don't think you can do it directly from hbm to annotations, but it's possible to do it if you proceed like this:
You may take a look at these links for further information: