Thymeleaf form input text for save Set<Object>
<p>I have an Entity with <code>@OneToMany</code> association:</p>

<pre><code>@OneToMany(cascade = CascadeType.ALL, mappedBy = "house", fetch = FetchType.EAGER)
private Set&lt;Room&gt; rooms;
</code></pre>

<p>Then in Thymeleaf I would like to populate four input text fields in order to save four rooms into DB.</p>

<p>The question is how to populate these fields to proper database save via Hibernate?</p>

<pre><code>&lt;tr th:each="i,iterStat : ${#numbers.sequence( 1, 4)}"&gt;    
  &lt;td&gt;
    &lt;input type="text" th:field="*{????}" /&gt;
  &lt;/td&gt;
&lt;/tr&gt;
</code></pre>