Up until the anorm included with play 2.3, I could write the following:
implicit val arbitraryClassToStatement = new ToStatement[ArbitraryClass] {
def set(
You need to create a ParameterMetaData[ArbitraryClass]
for this to work
implicit object ArbitraryClassMetaData extends ParameterMetaData[ArbitraryClass] {
val sqlType = ParameterMetaData.StringParameterMetaData.sqlType
val jdbcType = ParameterMetaData.StringParameterMetaData.jdbcType
}
Here I just retook the values of ParameterMetaData[String]