score:44
JPA does not limit number of persistence units defined in persistence.xml. This warning just tells about limitation of tool in Eclipse IDE. This is told for example here http://www.eclipse.org/webtools/dali/gettingstarted.php :
Currently Dali only supports one Persistence Unit and one Persistence XML file per project. Other configurations can exist in a JPA project, but the validation and defaults processing may not be correct when multiple persistence units are used.
I guess there is no known way to get this work in Eclipse IDE.
score:33
While this is JPA valid, you may also turn off the resulting (annoying) error notifications on a per-project basis by going into
Project Properties => JPA => Errors/Warnings
Activate Enable project specific settings
and under Type
, change the notification level for Class is mapped but is not in a persistence unit
from Error
to anything else you're comfortable with.
Update for Eclipse Luna:
The location and name of the setting has changed in Luna. The new location is:
Project Properties => JPA => Errors/Warnings
Check Enable project specific settings
Expand Project
group
Change Multiple persistence units defined:
to Ignore
.
Source: stackoverflow.com
Related Query
- Multiple persistence-unit tags in one persistence.xml
- JPA Multiple converters named ... defined in this persistence unit
- Multiple Git repositories for each Eclipse project or one Git repository
- Building multiple binaries within one Eclipse project
- Is it possible to have multiple Eclipse installs on one computer?
- How to create multiple Android apps from one code base
- Importing multiple git repositories into one project in Intellij
- Eclipse: No generator named "system-uuid" is defined in the persistence unit
- How can I fix "Compilation unit name must end with .java, or one of the registered Java-like extensions"?
- better Android XML Layout Editor than the one in Eclipse
- Is there a way to convert multiple variable declarations to one per line?
- How to view multiple projects in one window in IntelliJ IDEA IDE?
- One app multiple branding
- how to use one sonar server on multiple machines
- Multiple languages used in one eclipse project
- How many multiple "Eclipse Projects" is considered too excessive for one actual development project?
- Multiple flags in one int value
- How to run a selected set of unit tests in Eclipse with one mouseclick?
- eclipse Duplicate generator named "ID_GENERATOR" defined in this persistence unit
- Multiple Eclipse projects in one Mercurial repository
- Run multiple programs sequentially in one Windows command prompt?
- Importing Multiple XSD Files into Eclipse's XML Catalog
- Eclipse: Package multiple projects into one JAR
- Serving multiple GAE modules from one development server?
- Create multiple java classes from an eclipse template in one go
- Editing multiple elements in Android XML layout via Eclipse
- Is there a way how to edit multiple localised string.xml files in one window in Eclipse?
- How to launch multiple Java programs with one configuration on separate consoles (with Eclipse)
- How can one disable the XML editor in Eclipse for .xsd and related files?
- Multiple XSLT files to single XSLT file for 2 different xml files
More Query from same tag
- OSX C++ Eclipse crashes a lot, what can I do?
- How to speed up spring validation on SpringSource Tool suite?
- Android Eclipse Juno or ADT from Android developers site Ubuntu 12.04
- Add tomcat9 to Eclipse neon
- Running Scala Spark applications on Mac
- import sun.misc.BASE64Encoder results in error compiled in Eclipse
- XML error flagged Intermittently by ADT
- Got Build error but program still run perfectly
- eclipse visual editor
- Reading input commands with up to 3 commands
- Eclipse: Error in xml Graphical Layout after the new update
- Basic eclipse setup for android facebook development
- How to get the specialized type of an EStructuralFeature's getEType()?
- In an Eclipse Run Configuration how to you refer to the username?
- Implicit declaration of functions regardless of header include and ifndef
- Eclipse warning me for an option I appear to have
- Jar file not running on mac
- Reconnecting a Mercurial controlled project in Eclipse
- GCC's UTF-8 output displays incorrectly in Eclipse's build console
- Debugging with Java/Spring's @Autowired on Eclipse
- Can my Local Eclipse Install Access Libraries in Docker Container?
- Eclipse - Command line URL argument cutting off https
- First jee project not executing
- How do I add FTP support to Eclipse?
- How to change the APK icon?
- windowbuilder xwt design MalformedByteSequenceException: Invalid byte of UTF-8 sequence
- Can the Eclipse formatter be configured to indent multiple lines between parenthesis properly?
- Creating a Android OSGI bundle with Eclipse
- JFileChooser Hanging After Dialog Closes
- Why does this program terminate when I enter user input?