Help,
how do i do stuff like the following in Scala?
import org.hibernate.validator.constraints.ScriptAssert
@ScriptAssert.List({
@ScriptAssert(script = "...", lang = "javascript"),
@ScriptAssert(script = "...", lang = "javascript")})
Help,
how do i do stuff like the following in Scala?
import org.hibernate.validator.constraints.ScriptAssert
@ScriptAssert.List({
@ScriptAssert(script = "...", lang = "javascript"),
@ScriptAssert(script = "...", lang = "javascript")})
The correct syntax is as follows (Array(...)
for arrays, new Nested(..)
for nested annotations):
import org.hibernate.validator.constraints.ScriptAssert
@ScriptAssert.List(Array(
new ScriptAssert(script = "...", lang = "javascript"),
new ScriptAssert(script = "...", lang = "javascript")))
class Test
~/scala/dist/bin/scalac -cp /Users/luc/Downloads/hib/hibernate-validator-4.1.0.Final.jar:/Users/luc/Downloads/hib/validation-api-1.0.CR5.jar test.scala
–
Marty © 2022 - 2024 — McMap. All rights reserved.