Attribute override ignored when used with Inheritence
-----------------------------------------------------
Key: HHH-2619
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2619
Project: Hibernate3
Issue Type: Improvement
Components: core
Affects Versions: 3.2.3
Environment: Hibernate version: 3.2.3.ga, Hibernate Entity version: 3.3.1.ga
Reporter: Frank Daspro
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 {
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira