I am trying to extend the https://github.com/tennaito/rsql-jpa library to support EnumSet fields.
I have everything working with regard to the actual query against the database, if I hardcode the ArgumentParser to convert EnumSet properties values to a specific query.
My issue is that given a query enumsetfield=IN=(enumvalue)
the ArgumentParser gets a JavaType: class java.util.EnumSet
and the string enumvalue.
How do I get the element type from the JavaType? I also have access to a org.hibernate.jpa.criteria.path.SingularAttributePath
if that could possible contain the elementType.