I have a database class (annotated as an Entity us...
# announcements
g
I have a database class (annotated as an Entity using eBean) called "Style" where all the fields like "fontSize" are vars ('cause it's mutable like the underlying database). Now I want to create an unmodifiable DEFAULT Style object where everything is a val. Do I have to make an interface or an unmodifiable parent class that the mutable database class extends? Or is there a simpler way?