core: 3.2.0.cr2 ,ann: 3.2.0.CR1
Hi,
I'm using the Hibernate Annotation @MappedSuperclass in my class hierarchy with the following structure:
Code:
@MappedSuperclass
public abstract Document <T extends Line> {
...
protected List<T> itemLines = new ArrayList<T>();
...
@Transient
public abstract List<T> getItemLines();
}
@Entity
@Table(name = "tblPurchaseOrder")
public class PurchaseOrder extends Document<PurchaseOrderLine> {
@OneToMany(targetEntity=PurchaseOrderLine.class, cascade=CascadeType.ALL)
@JoinColumn(name="purchaseOrder_fk")
@IndexColumn(name="positionNumber")
public List<PurchaseOrderLine> getItemLines() {
return this.itemLines;
}
}
I have to provide the abstract method getItemLines as the super class 'Document' is implemented by various sub classes which are mapped on different tables. When I start my application (or hibernatetool) I get the following warnings:
Code:
[hibernatetool] 2006-07-04 14:29:21,608 WARN org.hibernate.validator.ClassValidator - Original type of property public abstract java.util.List sales.Document.getItemLines() is unbound and has been approximated.
[hibernatetool] 2006-07-04 14:29:21,609 WARN org.hibernate.validator.ClassValidator - Original type of property public abstract sales.Line sales.Document.createLine() is unbound and has been approximated.
[hibernatetool] 2006-07-04 14:29:21,610 WARN org.hibernate.validator.ClassValidator - Original type of property itemLines is unbound and has been approximated.
Is there a way to handle this?
thx,
john