[英]generate annotated java class from hbm file
I have an old project in which java classes are generated from hbm files. 我有一个旧项目,其中从hbm文件生成java类。
Is it possible ,using these hbm files, to generate java classes with annotations? 是否有可能使用这些hbm文件生成带注释的java类?
我们遇到了同样的问题并通过使用这个hbm到注释转换器脚本来解决它https://github.com/SchweizerischeBundesbahnen/hibernate_hbm2annotation
您可以使用hibernate反向工具 ,但是用于从数据库生成带注释的类而不是从hbm生成。
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: 我不认为你可以直接从hbm到注释,但如果你继续这样做,它可以做到 :
You may take a look at these links for further information: 您可以查看这些链接以获取更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.