I have a simple class:
public class MyClass {
public final static long MAIN = 1;
@Setter @Getter
protected int id;
}
(@Setter
@Getter
are lombok
annotations for Setter and Getter methods.)
In Freemarker template I would like to create a condition like:
<#if myClassInstance.id == myClassInstance.MAIN>
But the right hand side of the if
expression is according to FreeMarker undefined. Is there a way to do this? Thanks!