Hi Lukas!
When using DSL.row with anything different then Field parameters,
compilation fails with an "ambiguous reference to overloaded definition"
error.
For example this code fails:
row(1, 2)
The reason seems to be that the scala compiler can't find out which of the
row methods is most specific.
http://stackoverflow.com/questions/3313929/how-do-i-disambiguate-in-scala-between-methods-with-vararg-and-without
http://stackoverflow.com/questions/2159248/spurious-ambiguous-reference-error-in-scala-2-7-7-compiler-interpreter/2172619
https://issues.scala-lang.org/browse/SI-2991
Sorry, saying ResultQuery fetchInto doesn't work with scala classes was too
generic.
It doesn't work with case classes, which was the paradigm I wanted to use.
On Fri, Feb 28, 2014 at 5:28 PM, Lukas Eder <[email protected]> wrote:
> Hello,
>
> Like any other API, jOOQ can be used in Scala with the known
> interoperability limitations. Some comments inline:
>
> 2014-02-28 15:40 GMT+01:00 Florian Gutmann <[email protected]>:
>
> Hello!
>>
>> I'm currently experimenting with jooq together with scala.
>>
>> Unfortunately there seem to be many rough edges in everyday usage.
>> Just some that I stumpled upon:
>>
>> - DSL.row function not usable from scala due to a known limitation of
>> java interop with Object... vararg in scala.
>>
>
> Can you explain this further?
>
>
>> - Missing first class support for scala types makes certain situations
>> quite cumbersome.
>>
>
> Yes. This cannot be fixed without implementing a first class
> implementation.
>
>
>> - ResultQuery fetchInto and scala classes don't work together.
>>
>
> Can you explain this further?
>
>
>> Is there anything other integration than
>> jooq-scala<https://github.com/jOOQ/jOOQ/tree/master/jOOQ-scala> that
>> I've just not discovered?
>>
>
> Not yet.
>
>
>> Are there any further plans to improve scala support?
>>
>
> There are plans for late 2014, depending on the amount of traction we get
> for such an integration. By improving Scala support, I mean creating
> something like "SOOQ". In the mean time, jOOQ will work at most as well as
> any other Java library in Scala.
>
> Cheers,
> Lukas
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "jOOQ User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jooq-user/IQ4j8glws9s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.