从 hbm 文件生成带注释的 java 类
问题描述:
我有一个旧项目,其中 java 类是从 hbm 文件生成的.
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 到注解,但是有可能做到strong> 如果你这样继续:
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 配置生成数据库架构.
- 使用Hibernate反向工程 从此数据库生成带注释的类.
您可以查看这些链接以获取更多信息:
You may take a look at these links for further information: