diff --git a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java index f597f1f..c3e7818 100644 --- a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java +++ b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java @@ -70,7 +70,7 @@ public boolean userExists(String username) { @Transactional public User getUserByUsername(String username) { - Query query = sessionFactory.getCurrentSession().createQuery("from User where username = :username", User.class); + Query query = sessionFactory.getCurrentSession().createQuery("from CUSTOMER where username = :username", User.class); query.setParameter("username", username); try {