Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » @Entity gives mapped class not specified error with 2 persistence units
@Entity gives mapped class not specified error with 2 persistence units [message #611139] Mon, 08 September 2008 23:12
Bill Blalock is currently offline Bill BlalockFriend
Messages: 119
Registered: July 2009
Location: Alabama
Senior Member
Hi all.

I am new at this so please bear with me.

I have 2 persistence units in my project because the data is on two
servers with 2 SQL engines and the project combines the data.

Five tables are in the first unit. One table is in the second. I defined
the first five tables, added the 2nd persistence unit, and then tried to
develop the domain modle for the table in the 2nd persistence unit.

The @Entity annotation has the error "This mapped class is not specified
in persistence unit "sysmon"". "sysmon" is the name of the first
persistence unit. How do I get around this?

I am only using the persistence.xml file, no orm.xml file. Trying to use
annotations only.

This is the persistence.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns=""

<persistence-unit name="sysmon" transaction-type="RESOURCE_LOCAL">
<property name="eclipselink.jdbc.url"
format=iso;naming=sql;libraries=*LIBL SYSMONDB$ CPRSSECDTA TCPEXT"/>
<property name="eclipselink.jdbc.user" value="XXXXXXX"/>
<property name="eclipselink.jdbc.password" value="XXXXX"/>
<property name="eclipselink.jdbc.driver"
<property name="eclipselink.session.customizer"
<property name=""

<persistence-unit name="dataexpress" transaction-type="RESOURCE_LOCAL">
<property name="eclipselink.jdbc.url"
<property name="eclipselink.jdbc.user" value="XXXXXX"/>
<property name="eclipselink.jdbc.password" value="XXXXXX"/>
<property name="eclipselink.jdbc.driver" value="C:\javalib\Microsoft SQL
Server 2005 JDBC Driver\sqljdbc_1.2\enu\sqljdbc.jar"/>


The @Entity of domain_model.Ftplog01 annotation has an error because it is
not listed in "sysmon" persistence unit classes.

How do I get around this?

Thanks all
Bill Blalock
Previous Topic:Collection enum
Next Topic:SQL Server 200 tinyint mapping to Object
Goto Forum:

Current Time: Sat Jul 31 06:52:35 GMT 2021

Powered by FUDForum. Page generated in 0.01873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top