2014-01-14 80 views
0

有沒有辦法可以自動生成orm.xml中的文件Netbeans即使我稍後可以對其進行修改。現在用的EclipseLink JPA 2.1,它不斷給我這個警告,當我建立自動生成netbeans中的orm.xml文件

warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7' 
Note: Creating non-static metadata factory ... 
Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false 
Note: Optional file was not found: META-INF/orm.xml continuing with generation. 
Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation. 
Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false 
Note: Optional file was not found: META-INF/orm.xml continuing with generation. 
Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation. 
warning: The following options were not recognized by any processor: '[eclipselink.canonicalmodel.use_static_factory]' 
Note: C:\Users\USER\Documents\NetBeansProjects\payroll\src\dcl\payroll\GUI\Login.java uses or overrides a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
1 warning 

回答

0

的警告只是爲了讓你知道,如果你正在使用一個orm.xml來定義您的映射:這不是什麼找到了。如果你在那裏放置一個,你仍然會收到消息讓你知道發現了一個。這會在日誌中發出通知,以幫助指出應用程序發生意外情況時的開始位置 - 例如使用了錯誤的orm.xml版本,或者意外打包並拾取了一個,這似乎是開發中的常見問題。