ctierney
07/12/2016, 2:07 PMenum class Settings(val intValue: Int) {
FOO_ENABLED(260),
...
}`
And then reference it from an SQL query that is the value of an annotation:
@SQLQuery("""<sql stuff> and id = ${FOO_ENABLED.intValue}""")
But I can't because intValue
isn't a compile-time constant, and I don't think I can make it be one (const
is not allowed there). Is there an approach I'm not thinking of?