Attribute override ignored when used with Inheritence

Description

Originally raised here: http://forum.hibernate.org/viewtopic.php?t=973809

I am wanting to do the following but the @AttributeOverride is ignored creating (invalid column errors when HQL queries are executed). This effectively means Hibernate dictating the naming conventions for my inheritence tables.

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class Parent implements Serializable {
@Id
private Long recordNo;
}

@Entity
@AttributeOverride(name="recordNo", column=@Column(name="CHILD1_RECORD_NO"))
public class Child1 extends Parent {

}

@Entity
@AttributeOverride(name="recordNo", column=@Column(name="CHILD2_RECORD_NO"))
public class Child2 extends Parent {

}

Environment

Hibernate version: 3.2.3.ga, Hibernate Entity version: 3.3.1.ga

Assignee

Unassigned

Reporter

Frank Daspro

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure