-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Filter ignored when defined for child class
PostPosted: Fri Oct 05, 2007 10:56 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.