title: Hibernate: Unknown column in field list
body: <p>I am getting the following error from my Hibernate code:</p>
  
  <pre><code>com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'bulletin0_.bulletin_date' in 'field list'
  </code></pre>
  
  <p>There is no such <code>bulletin_date</code> column in my table, nor is there such a name in my model class.  It's just called <code>date</code>.  Here is the line where I'm getting the error.</p>
  
  <pre><code>Query query = session.createQuery("from Bulletin where approved = true");
  </code></pre>
  
  <p>Here is my model class (I'm leaving out the getters and setters):</p>
  
  <pre><code>public class Bulletin {
      @Id
      @Column(name="id")
      @GeneratedValue
      private int id;
  
      @Column(name="date")
      private String date;
  
      @Column(name="name")
      private String name;
  
      @Column(name="subject")
      private String subject;
  
      @Column(name="note")
      private String note;
  
      @Column(name="approved")
      private boolean approved;
  }
  </code></pre>
  
  <p>Here is my table definition.</p>
  
  <pre><code>+----------+---------------+------+-----+---------+----------------+
  | Field    | Type          | Null | Key | Default | Extra          |
  +----------+---------------+------+-----+---------+----------------+
  | id       | int(11)       | NO   | PRI | NULL    | auto_increment |
  | date     | varchar(10)   | YES  |     | NULL    |                |
  | name     | varchar(30)   | YES  |     | NULL    |                |
  | subject  | varchar(50)   | YES  |     | NULL    |                |
  | note     | varchar(2500) | YES  |     | NULL    |                |
  | approved | tinyint(1)    | YES  |     | NULL    |                |
  +----------+---------------+------+-----+---------+----------------+
  </code></pre>