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.

Bug 215179

Summary: Wrong "The project does not contain a persistence unit" hint
Product: javaee Reporter: dusty <dusty>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: athompson
Priority: P1    
Version: 7.1.2   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description dusty 2012-07-04 14:52:00 UTC
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.
Comment 1 Sergey Petrov 2012-10-29 13:41:22 UTC
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).
Comment 2 Sergey Petrov 2013-04-29 08:12:53 UTC
*** Bug 229037 has been marked as a duplicate of this bug. ***
Comment 3 athompson 2013-04-29 15:28:44 UTC
Yup, and in many coding patterns the model is  separate from the EJBs/App anyway.
Comment 4 dimalinux 2013-05-31 21:39:22 UTC
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).