This change in Building:
@Column(nullable = false)
@ManyToOne
    public Room getRoom() {
        return room;
    }

causes this error: 
org.hibernate.AnnotationException: @Column(s) not allowed on a @ManyToOne property: org.hibernate.test.annotations.uniqueconstraint.House.room

Is there another way to set it to nullable ??