2014-01-14 82 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版本,或者意外打包并拾取了一个,这似乎是开发中的常见问题。