First of i want to say that the hibernate filters in generall work perfect and i think they are really usefull! So keep up the good work hibernate team ;)
There is one question i have about this @Filter:
I get this error:
"@Filter not allowed on subclasses (ignored): com.nefli.camelot.data.domain.Region"
this is my code;
Region.java (region is the domain class POJO)
Code:
@Entity
@FilterDef(name="disabledFilter") @Filter(name="disabledFilter", condition="disabled = 0")
public class Region extends Asset
{ ... not important
Asset.java (asset is a POJO with the common asset info)
Code:
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Asset extends AbstractRecordImpl
{ ... not important
AbstractRecordImpl.java (the abstract record with stuff like id, hashcode, equals etc.)
Code:
@MappedSuperclass
public abstract class AbstractRecordImpl implements Record, Serializable
{ .. not important
So why o why can't i create a filter on a subclass?