0
我正在使用netbeans,我從數據庫生成POJO和hbm.xml文件,但我只能從一個模式生成。但我需要從兩個不同的模式創建,它的表具有交叉引用或關係。我如何在Netbeans中執行此操作?或者有其他解決方案嗎?Netbeans從多個數據庫生成hbm.xml文件
我正在使用netbeans,我從數據庫生成POJO和hbm.xml文件,但我只能從一個模式生成。但我需要從兩個不同的模式創建,它的表具有交叉引用或關係。我如何在Netbeans中執行此操作?或者有其他解決方案嗎?Netbeans從多個數據庫生成hbm.xml文件
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;