Anorm 2.5不适用于java.time.LocalDate

use*_*478 9 scala anorm

我正在使用Anorm 2.5和以下代码段:

import anorm.SqlParser._
import anorm._
// Not really needed, but to be sure
import anorm.JavaTimeToStatement
import anorm.JavaTimeParameterMetaData
import anorm.JavaTimeColumn

val localDate = java.time.LocalDate.of(2015, 9, 25)

val value = SQL"""SELECT id FROM table WHERE date = $localDate;""".as(get[Long]("id").singleOpt)
Run Code Online (Sandbox Code Playgroud)

产生此错误:

found   : java.time.LocalDate
[error]  required: anorm.ParameterValue
[error]  date = $localDate
Run Code Online (Sandbox Code Playgroud)

根据changelog,anorm 2.5实际上应该支持java.time.LocalDate转换.有人可以帮忙吗?在我看来,java.time.LocalDate支持不起作用.