Hello,
I'm starting to use Filters and it works fine with classes without inheritance, but when a class is subclass of another the filter doesn't work if put it only in the sub class. Is it supposed to work like this?
The code that doesn't work is:
The superclass:
Code:
@Entity
@DiscriminatorColumn(name = "CF", discriminatorType = DiscriminatorType.STRING)
public abstract class CliFor implements Serializable { //...
The subclass:
Code:
@Entity
@DiscriminatorValue("C")
@Filter(
name = "filtrarPorVendedor",
condition = /* the condition */
)
public class Cliente extends CliFor {
If I remove the @Filter from Cliente and put it on CliFor it starts to work. Why? Shouldn't I be able to Filter only subclasses?
Regards,