Netbeans从多个数据库shcemas生成hbm.xml文件

时间:2012-09-30 12:10:45

标签: netbeans netbeans-7 hibernate-mapping pojo hbmxml

我正在使用netbeans,我正在从数据库生成POJO和hbm.xml文件,但我只能从一个模式生成。但我需要从两个不同的模式创建,它的表有交叉引用或关系。我怎么能在Netbeans中做到这一点?或者有其他替代解决方案吗?

1 个答案:

答案 0 :(得分:0)

Seems it Netbean's bug, while creating an reverse 
engineering xml file, actually you can not create them from multiple schemas, 
because simply Netbean does not simply generate them. There  are several solutions 
if you dont want to write by hand all codes in reverse engineering file:
1)  First You can generate reverse engineering file from
 Eclipse IDE, then you may copy it and paste in the
 Netbeans reverse engineering file, then it should 
work fine to generate POJO and hbm.xml files;