@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?
--
View this message in context:
http://openjpa.208410.n2.nabble.com/The-name-A-is-not-a-recognized-entity-or-identifier-Perhaps-you-meant-tp6450064p6450064.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.