I have a problem with extending entity classes and OneToMany relations.
(The problem is not the same as http://jboss.com/index.html?module=bb&op=viewtopic&t=111688)
My superclass, Inventory, has a column, station, which is used to map a relation with the Station entity
public class Station implements Serializable {
@OneToMany(cascade = ALL, mappedBy = "station")
private Set<InventoryType1> inventory1 = new HashSet<InventoryType1>(0);
}
public class Inventory implements Serializable {
/** Station */
@ManyToOne
@JoinColumn(name = "station_id")
private Station station;
}
public class InventoryType1 extends Inventory implements Serializable {
}
org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: Inventory1.station in Station.inventory1