在netbeans中自动生成orm.xml文件

在netbeans中自动生成orm.xml文件,netbeans,orm,eclipselink,Netbeans,Orm,Eclipselink,是否有一种方法可以在Netbeans中自动生成orm.xml文件,即使我以后可以修改它。我正在使用eclipselink JPA 2.1,它在我构建时不断给我这个警告 warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7

是否有一种方法可以在Netbeans中自动生成orm.xml文件,即使我以后可以修改它。我正在使用eclipselink JPA 2.1,它在我构建时不断给我这个警告

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

警告只是让您知道,如果您正在使用orm.xml定义映射,则找不到它。如果你把一个放在那里,你仍然会收到消息,告诉你找到了一个。这会在日志中给出一个通知,以帮助指出在应用程序中出现意外情况时从何处开始查找,例如使用了错误的orm.xml版本,或者意外打包并拾取了一个,这似乎是开发中的常见问题