Scala implicit conversion for Java enums is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When using QueryDSL 2.2.0 with Scala, Creating queries with expressions on Java enums givens compile errors.
Code example:
override def findByPaymentSt
query.
Error is (copied from Eclispse IDE):
overloaded method value = with alternatives: (right: com.mysema.
com.mysema.
cannot be applied to (de.tototec.
When adding the following implicit conversion in scope, the code compiles fine:
import com.mysema.
implicit def enumPath[E <: Enum[E]](e: E): com.mysema.
Conversions
I think, this implicit conversion should be added to com.mysema.
Thanks for the bug report. Fixed in SVN trunk.