title: Hibernate changing my field name
body: <p>I am practice Hibernate with the following classes and a MySQL database.</p>
  
  <pre><code>@Entity
  @Table(name="Student")
  public class Student {
  
      @Id
      @GeneratedValue
      private int student_id;
  
      private String student_name;
  
      @ManyToOne(cascade=CascadeType.ALL)
      private StudentAddress address;
  
      @Transient
      @Temporal(TemporalType.DATE)
      private Date birthDay;
  
      public Student() {
      }
  
      public Date getBirthDay() {
          return birthDay;
      }
  
      public void setBirthDay(Date birthDay) {
          this.birthDay = birthDay;
      }
  
      public int getStudent_id() {
          return student_id;
      }
  
      public void setStudent_id(int rollNo) {
          this.student_id = rollNo;
      }
  
      public String getStudent_name() {
          return student_name;
      }
  
      public void setStudent_name(String name) {
          this.student_name = name;
      }
  
      public StudentAddress getAddress() {
          return address;
      }
  
      public void setAddress(StudentAddress address) {
          this.address = address;
      }
  }
  
  @Entity
  @Table(name="student_address")
  public class StudentAddress {
  
      @Id
      @GeneratedValue
      private int address_id;
  
      private String address_detail;
  
      public int getAddress_id() {
          return address_id;
      }
  
      public void setAddress_id(int address_id) {
          this.address_id = address_id;
      }
  
      public String getAddress_detail() {
          return address_detail;
      }
  
      public void setAddress_detail(String address_detail) {
          this.address_detail = address_detail;
      }
  }
  </code></pre>
  
  <p>I keep getting the following error message from these sql statements:</p>
  
  <pre><code>Hibernate: insert into student_address (address_detail) values (?)
  Hibernate: insert into Student (address_address_id, student_name) values (?, ?)
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>Unknown column '**address_address_id'** in 'field list'
  </code></pre>
  
  <p>My database has the field name <code>address_id</code>.</p>
  
  <p>Hibernate keeps appending <code>address</code> to <code>address_id</code> and changes the column name. I could probably change the field name from <code>address</code> to <code>address_address_id</code> in my database but what is causing this to happen. Is it a valid behavior in Hibernate and can I change it?</p>