openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: The name "A" is not a recognized entity or identifier. Perhaps you meant ....
Date Tue, 07 Jun 2011 15:22:15 GMT
Can you post the entire stacktrace? How are you enhancing your Entities?

On Tue, Jun 7, 2011 at 10:16 AM, infinity2heaven
<infinity2heaven@gmail.com>wrote:

> @Entity
> @Table(name = "profile_audit_detail")
> @SequenceGenerator(name = "profileAuditDetailSeq", sequenceName =
> "profile_audit_detail_seq")
> @NamedQueries({ @NamedQuery(name = "findByXXX", query = "xxx") })
> public class ProfileAuditDetail implements Serializable {
>
>        @ManyToOne(cascade = CascadeType.ALL)
>        @JoinColumn(name = "audit_id")
>        private ProfileAudit profileAudit;
>
>        ...
>
> }
>
>
> em.createQuery("DELETE FROM ProfileAuditDetail").executeUpdate();
>
> throws the following error:
>
> The name ProfileAuditDetail is not a recognized entity or identifier.
> Perhaps you meant ....
>
> The entity is listed in persistence.xml. I can run named queries and all.
> Everything else works just fine. I just can't delete from this table. Any
> ideas?
>
>
-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message