title: Spring Boot JPA unknown column in field list
body: <p>In MySQL I have script that create table </p>
  
  <pre><code>create table account (
  AccountId int not null auto_increment,
  Login varchar(31),
  Password varchar(31),
  primary key (AccountId)
  );
  </code></pre>
  
  <p>In java class i have model to this table </p>
  
  <pre><code>@Entity
  @Table(name = "account")
  public class Account {
  
      @Column(name = "AccountId", nullable = false, unique = true)
      private Integer AccountId;
      private String  Login;
      private String Password;
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      public Integer getAccountId() {
          return AccountId;
      }
  </code></pre>
  
  <p>In Repository package</p>
  
  <pre><code>public interface AccountRepository extends JpaRepository&lt;Account, Integer&gt; {
      Account findAccountByLoginAndPassword(String login, String password);
  }
  </code></pre>
  
  <p>In client site i try send in request login and password but i have error in server site</p>
  
  <pre><code>2018-05-28 14:46:15.464  INFO 20300 --- [nio-8080-exec-2] o.h.h.i.QueryTranslatorFactoryInitiator  : HHH000397: Using ASTQueryTranslatorFactory
  Hibernate: select account0_.account_id as account_1_0_, account0_.login as login2_0_, account0_.password as password3_0_ from account account0_ where account0_.login=? and account0_.password=?
  
  `ERROR 20300 --- [nio-8080-exec-2] o.h.engine.jdbc.spi.SqlExceptionHelper   : Unknown column 'account0_.account_id' in 'field list`
  </code></pre>
  
  <p>'
  That mean I should change my column name in MySQL table to account_id?</p>