我试图在grails中保留joda LocalDate的列表。我现在所拥有的是这样的:使用GORM保留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属性尝试过,但不工作或者(只是didnt添加任何东西)
这是我第二次选项,但我发现它太杂乱,增加了一个额外的领域类无线只有一个属性 – user1485182 2013-03-20 10:46:47