JPQLException : If you specify the name of the entity the queries are not created correctly because it uses the name of the class.
I created a fork of the repository and I solved the problem
Example:
@Entity(name="CAT")
public class Category implements NodeInfo {
@Id @GeneratedValue
private int id;
private String name;
...
}
Exception Description: Error compiling the query [update Category n set n.lft = n.lft + ?1 where n.lft >= ?2 and n.rootId = ?4], line 1, column 0: Unknown entity type [Category].
at
...
org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.jaCaused by: Exception [EclipseLink-8037](Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.JPQLException
Exception Description: Error compiling the query [update Category n set n.lft = n.lft + ?1 where n.lft >= ?2 and n.rootId = ?4], line 1, column 0: Unknown entity type [Category].
at org.eclipse.persistence.exceptions.JPQLException.entityTypeNotFound2(JPQLException.
at org.eclipse.persistence.internal.jpa.parsing.ModifyNode.resolveClass(ModifyNode.java:103)
...
JPQLException : If you specify the name of the entity the queries are not created correctly because it uses the name of the class. I created a fork of the repository and I solved the problem
Example:
@Entity(name="CAT") public class Category implements NodeInfo { @Id @GeneratedValue private int id; private String name; ... }
Exception Description: Error compiling the query [update Category n set n.lft = n.lft + ?1 where n.lft >= ?2 and n.rootId = ?4], line 1, column 0: Unknown entity type [Category]. at ... org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.jaCaused by: Exception [EclipseLink-8037](Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.JPQLException Exception Description: Error compiling the query [update Category n set n.lft = n.lft + ?1 where n.lft >= ?2 and n.rootId = ?4], line 1, column 0: Unknown entity type [Category]. at org.eclipse.persistence.exceptions.JPQLException.entityTypeNotFound2(JPQLException. at org.eclipse.persistence.internal.jpa.parsing.ModifyNode.resolveClass(ModifyNode.java:103) ...