Hey Guys,
I have the following setup:

class A<T> {
private T state;
// getters and setters for state are here.
}

class B extends class A <State1Enum> {
}

class C extends class A <State2Enum> {
}

So when I try to filter with FIQL in class C or class B with filter
state=="SomeValue" the search condition is being returned null since the
enum is not being recognized as itself but as an Object since the getters
and setters are in the parent class and are parametrized and the value of
the filter cannot be parsed properly by the SearchConditionParser parse
method.
I tried to implement an interface that both enums implement and
paratmetrize the class with <T extends BaseInterface>, but then I hit other
problems with my project.

So can you advice me what should I do in order the fiql query by state to
work?

Big thanks in advance.

Regards,
Kiril

Reply via email to