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 - Wrong "The project does not contain a persistence unit" hint
Summary: Wrong "The project does not contain a persistence unit" hint
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1.2
Hardware: PC Linux
: P1 normal with 4 votes (vote)
Assignee: Sergey Petrov
: 229037 (view as bug list)
Depends on:
Reported: 2012-07-04 14:52 UTC by dusty
Modified: 2013-05-31 21:39 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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).