Joined: Wed Aug 29, 2007 3:28 pm Posts: 2 Location: Atlanta, GA
|
Hibernate annotations version: 3.2.1.ga
Hibernate entity manager version: 3.2.1.ga
Hibernate version: 3.2.1.ga
Annotations:
@MappedSuperclass
public class MappedBase implements Serializable {
...
}
The parent:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name="CUSTOMER_TYPE_ID", discriminatorType=DiscriminatorType.INTEGER)
public abstract class Customer extends MappedBase {
...
}
A child:
@Entity
public class DealerCustomer extends Customer {
...
}
Name and version of the database you are using:
Oracle 10g
Filter definitions (@org.hibernate.annotations.FilterDef) can be detected on either parent or child, the problem is that the filters (@org.hibernate.annotations.Filter) do not take effect when annotated on the child class, but works when moved into the parent's annotations. This makes it impossible to use the same filter definition and apply different filter contents for different children. Is there any way to avoid this behavior?
|
|