You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# mysql 8CREATETABLEhumans
(
id BIGINT UNSIGNED AUTO_INCREMENT,
name text,
PRIMARY KEY (id)
);
I executed the below sbt task.
scalikejdbcGen humans Human
compile
Then, Scala compiler output the below warnings.
[warn] /.../Human.scala:35:32: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method single,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.map(Human(h.resultName)).single.apply()
[warn] ^
[warn] /.../Human.scala:39:63: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method list,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] withSQL(select.from(Human as h)).map(Human(h.resultName)).list.apply()
[warn] ^
[warn] /.../Human.scala:43:72: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method single,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] withSQL(select(sqls.count).from(Human as h)).map(rs => rs.long(1)).single.apply().get
[warn] ^
[warn] /.../Human.scala:49:32: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method single,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.map(Human(h.resultName)).single.apply()
[warn] ^
[warn] /.../Human.scala:55:32: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method list,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.map(Human(h.resultName)).list.apply()
[warn] ^
[warn] /.../Human.scala:61:22: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method single,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.map(_.long(1)).single.apply().get
[warn] ^
[warn] /.../Human.scala:70:7: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method updateAndReturnGeneratedKey,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.updateAndReturnGeneratedKey.apply()
[warn] ^
[warn] /.../Human.scala:94:7: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method update,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] }.update.apply()
[warn] ^
[warn] /.../Human.scala:99:67: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method update,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn] withSQL { delete.from(Human).where.eq(column.id, entity.id) }.update.apply()
[warn] ^
[Environment]
I executed the below sbt task.
Then, Scala compiler output the below warnings.
*I masked source path.
I think maybe that this source should be fixed.
https://github.com/scalikejdbc/scalikejdbc/blob/master/scalikejdbc-mapper-generator-core/src/main/scala/scalikejdbc/mapper/CodeGenerator.scala
The text was updated successfully, but these errors were encountered: