fixed broken JPA query
This commit is contained in:
@ -93,7 +93,7 @@ public class AccountControl {
|
||||
|
||||
// load Admin or User role from database
|
||||
String roleName = (isAdmin ? "Admin" : "User");
|
||||
Query roleQuery = em.createNamedQuery("ApplicationRole.findByRoleName");
|
||||
Query roleQuery = em.createNamedQuery("ApplicationRoleEntity.findByRoleName");
|
||||
roleQuery.setParameter("roleName", roleName);
|
||||
ApplicationRoleEntity role = (ApplicationRoleEntity) roleQuery.getSingleResult();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user