I'm using Spring Boot JPA with Thymeleaf, I'm dealing with a Class (Entity) linked to a table with around 40 columns, so my entity model class has around 40 attributes (each one linked to each column of the table).
If I want to show in a view (using thymeleaf) all columns of the table, do I have to hard code it calling each attribute in the view like this?
<td th:text=${entity.attribute1> </td>}
<td th:text=${entity.attribute2> </td>}
<td th:text=${entity.attribute3> </td>}
<td th:text=${entity.attributeN...> </td>}
Or is there a way to iterate over the properties of the entity in the Thymeleaf view to avoid having to call all 40 attributes by name?
So far I've just found a way of iterating over List of Entities, but not the attributes of one Entity.