Hi,

Is there a nice way to get around this? I can't set an int column the way 
you can in Java.

   val userId: Int = ...

   val u = dsl.update(t)
        .set(t.MODIFIED_BY, userId)  // compile error here
        .set(t.IS_ACTIVE, isActive)

An implicit conversion from Int to java.lang.Integer won't satisfy it. Need 
to substitute userId with java.lang.Integer.valueOf(userId). Kind of 
annoying.

I don't really understand the error message: 

type mismatch;  found   : 
org.jooq.TableField[foo.db.gen.tables.records.DocRecord,Integer]  required: 
org.jooq.Field[Any] Note: Integer <: Any 
(and org.jooq.TableField[foo.db.gen.tables.records.DocRecord,Integer] <: 
org.jooq.Field[Integer]), but Java-defined trait Field is invariant in type 
T. You may wish to investigate a wildcard type such as `_ <: Any`. (SLS 
3.2.10)
Why does it think it needs Field[Any]; the set method is generic. 

Also the isActive is a boolean, going to an int column. Also won't work 
without manual intervention.

Rob


-- 
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.

Reply via email to