@Entity
public class Timeline extends Model {
@Id
public Long id;
@Constraints.Required
public String type;
}
In scala view file I want reference type member like this
@(timeline: Timeline)
<ul>
<li>@timeline.type
but it's not working, I think type is a reserved word in scala. I tried like that
@timeline.'type'
It just makes a same error.
Please, let me know how to fix this bug.
Thanks.