title: Hibernate creates redundant column in database
body: <p>I work at a room-management software in which I want to know the rooms in a certain building.</p>
  
  <p>In the building entity the <code>@OneToMany</code> relationship:</p>
  
  <pre><code>   @JsonBackReference(value= "room")
     @OneToMany(targetEntity=Room.class, mappedBy="building", fetch=FetchType.EAGER,cascade = 
                CascadeType.REMOVE,orphanRemoval = true)
     public Set&lt;Room&gt; getRooms() {
         return this.rooms;
  }
  </code></pre>
  
  <p>And in the room entity the <code>@ManyToOne</code> relationship:</p>
  
  <pre><code>@JsonManagedReference(value= "room")
  @ManyToOne(fetch=FetchType.EAGER)
  @JoinColumn(name="building_number", nullable=false)
  @OnDelete(action = OnDeleteAction.CASCADE)
  public Building getBuilding() {
      return this.building;
  }
  </code></pre>
  
  <p>And the auto-generated database generates an extra field because of those relationships and I just want them to be mapped on Room.building_number:</p>
  
  <p><a href="https://i.stack.imgur.com/rHPi3.png" rel="nofollow noreferrer">building_building_number</a> and I just need building_number.</p>