私が抱えている問題は.equalsにあります。パスワード文字列がデータベース内のパスワードの値と等しいかどうかを確認しようとしています。サーベットにパスワード文字列があり、フォームからパスワードを取得します。ユーザー名は問題なくチェックしますが、パスワードはチェックしません
public boolean acceptCustomer(String username, String password){
CustomerTableClass customer = new CustomerTableClass();
customer.setCustomerUsername(username);
customer.setCustomerPassword(password);
Boolean check = null;
try
{
entityManager = entityManagerFactory.createEntityManager();
CustomerTableClass customerTest = new CustomerTableClass();
customerTest = entityManager.find(customer.getClass(),username);
if (customerTest!=null)&&(password.equals(customer.getPassword()))){
check= true;
System.out.println("User found");
}