我有以下代码
mymodel.objects.filter(sessions__name='session1')
mymodel.objects.filter(sessions__name__contains='1')
我正在尝试将@XmlRootElement
@XmlSeeAlso(Array(classOf[EmailNotification],classOf[WebhookNotification]))
abstract class Notification {
}
@XmlRootElement
case class EmailNotification(@BeanProperty var recipients: JList[String],
@BeanProperty var subjectTemplate: String) extends Notification {
def this() = this(new java.util.ArrayList[String](), null)
}
字段从以下json反序列化为通知类型列表。
notificationDetails
我收到以下错误
"notificationDetails":["recipients":["a@b.com"], "subjectTemplate": "hmmm"}],
我错过了我的案例类的任何注释吗?