我正在尝试在 grails 中保留 joda LocalDate 列表。我现在拥有的是这样的:
package com.publidirecta
import org.joda.time.LocalDate
class Evento {
List <LocalDate> fechas = []
static hasMany = [fechas:LocalDate]
}
我收到以下错误:
MappingException: Missing type or column for column[fechas_persistent_local_date] on domain[Evento] referencing[org.jadira.usertype.dateandtime.joda.PersistentLocalDate]
->> 334 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 166 | run in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
我试过没有 hasMany 属性,但也不起作用(只是没有添加任何东西)