This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm developing a Spring 3.1 project and I get that hint on every @Entity class but it's wrong because with latest Spring a persistence unit definition is not needed any more since it gets created automatically by the framework.
I'm not sure persistenc emay know about any new framework or library which may produce persistence.xml automatically. in this case it's enhancment request to recognize new spring. Also there is another request in jpa area to allow configuration for jpa hints as for any usual java hints (and hide if unnecessary).
*** Bug 229037 has been marked as a duplicate of this bug. ***
Yup, and in many coding patterns the model is separate from the EJBs/App anyway.
Our persistence.xml files are not getting generated automatically. Our DataSource, EntityManagerFactor etc. are all defined in Java using JavaConfig (a style of configuration available in Spring since version 3.1).