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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With