Skip to content

Commit

Permalink
fix: update [ UserDao.getUserByUsername ] query table from user to cu…
Browse files Browse the repository at this point in the history
…stomer
  • Loading branch information
zhangyang committed Dec 5, 2024
1 parent a229716 commit 6a15311
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public boolean userExists(String username) {

@Transactional
public User getUserByUsername(String username) {
Query<User> query = sessionFactory.getCurrentSession().createQuery("from User where username = :username", User.class);
Query<User> query = sessionFactory.getCurrentSession().createQuery("from CUSTOMER where username = :username", User.class);
query.setParameter("username", username);

try {
Expand Down

0 comments on commit 6a15311

Please sign in to comment.