Open mkp05 opened 4 years ago
Jinq relies on Hibernate/JPA for its queries, and it's a little unclear whether JPA actually handles comparison operators with AttributeConverters in an intelligent way or not (it might just compare the raw data in the SQL database, which can cause all sorts of unexpected behavior). So I'm hesitant about such a feature.
It would be great to be able to have support also for
compareTo
method (translated to SQL probably to<
/>
operators - they work for most types in DB engines) for datatypes using AttributeConverter and registered byregisterAttributeConverterType
. As I see in the docs (and from stacktrace :D) currently onlyequals
is supported.I think it can be assumed that simple comparison operators can be used and it would be great for using rich domain objects (written around single DB column) directly in entities and then in JINQ queries.