title: How to ignore column names in Hibernate
body: <p>I had a situation where my java application need to connect two different databases</p>
  
  <p>database1:</p>
  
  <p>TableName:User
  column names:userId,FirstName,StartDate</p>
  
  <p>database2:</p>
  
  <p>TableName:User
  column names:userId,UserName,StartDate</p>
  
  <p>I used Hibernate(ORM) where my entity class looks like</p>
  
  <pre><code>@Entity
  public class User {
      @Id
      @Column(name = "User_ID")
      private String userName;
  
      private String name;
  
      @Column(name = "Start_Date")
      private String startDate;
  
  }
  </code></pre>
  
  <p>The problem i m facing is second attribute name is different above tables
  so i m unable to map this entity class with them in generic way.</p>
  
  <p>help me in figuring </p>
  
  <p>is there a way in hibernate to ignore column name or (two names for single column) so that i can map single entity to both tables</p>