Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6234225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:26:48+00:00 2026-05-24T10:26:48+00:00

I have about 100 error marker 50 each message. But not every Entity has

  • 0

I have about 100 error marker 50 each message. But not every Entity has the error marker The Account class does not have it, but every class that has an Account field. A class with an error prone entity(classes with account fields) as a field does not has this error either.

Class "com.model.AccountChange" is mapped, but is not included in any persistence unit AccountChange.java This marker is on the line of the class definition not the @Entity annotation.

@Entity
public class AccountChange extends BaseObject {

The next error marker is on the line of the @ManyToOne annotation
Target entity "com.model.Account" for "account" is not an Entity

@ManyToOne(cascade = { CascadeType.ALL })
@NotNull
private Account account;

I downloaded Eclipse 3.7 Indigo Java EE and installed subclipse and the Jboss Tools 3.3M2.

That project worked fine in Eclipse 3.6 and someone else encountered the same error and switched back to 3.6 but i thought maybe someone knows the source.

EDIT: The first marker could be resolved with Project Properties -> JPA -> Discover annotated classes automatically
The other error still persists

EDIT: Thats strange, 57 of the 59 remaining errors are with an Account field. i have in my model classpath a separate persistence.xml. If i Add class com.model.Account i get the error “class cannot be resolved” if i change it to AccountGroup no problems there. The remaining 2 errors cannot be resolved either. The other entities can be.

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="project">
<class>com.model.AccountGroup</class>
</persistence-unit>
</persistence>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:26:49+00:00Added an answer on May 24, 2026 at 10:26 am

    we have one in the source folder for eclipse development (the one i
    copied here) and others that replace that file for development or live
    server.

    That is your issue, JPA Validation currently only supports a single persistent unit or persistence.xml per project:

    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.

    You could try adding <exclude-unlisted-classes>false</exclude-unlisted-classes> to your persistence.xml in your META-INF folder. Conversely, make it true and list all of your entity classes in there not just AccountGroup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so say I have 100 rows to insert and each row has about
I have about 100 Word documents which include transliteration of foreign names. The author
At my workplace we have one large Subversion repository which holds about 100 projects.
Preliminary : I have an application which maintains a thread pool of about 100
i, I have to run about a 100 tests on my program and doing
I have about 50 images of 50 x 50 pixel size each. I want
I have a legacy table with about 100 columns (90% nullable). In those 90
I have an application which communicates with a database. Each table has a unique
I've browsed every post about TFS and Hudson I could find but nothing useful
Does the erlang TCP/IP library have some limitations? I've done some searching but can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.