Insert data in different table in one submit using Struts2 and Hibernate
<p>I am having a jsp with the following fields :
 <code>loginID</code>,<code>password</code>,<code>firstName</code>,<code>lastName</code>,<code>aadharCardNo</code>,<code>standard</code>,<code>section</code>,<code>schoolName</code></p>

<p>where <code>loginID</code>,<code>password</code>,<code>firstName</code>,<code>lastName</code> are from table <code>u_user</code></p>

<p><code>aadharCardNo</code> is from <code>u_userdocument</code></p>

<p><code>standard</code>,<code>section</code>,<code>schoolName</code> is from <code>u_academicdetails</code></p>

<p>As soon as the user enters all the details in register.jsp page a ID(generated ID after submitting the form) is generated and following insertions should take place in respective tables</p>

<p><code>aadharCardNo</code>,<code>ID</code>(generated one) in <code>u_userdocument</code></p>

<p><code>standard</code>,<code>section</code>,<code>schoolName</code>,<code>ID</code>(generated one) in <code>u_academicdetails</code></p>

<p>and <code>firstName</code>,<code>lastName</code>,<code>ID</code>(generated one) in <code>u_user</code></p>

<p>How I am able to do this in Hibernate??? </p>

<p>Please suggest me , as I am new to Hibernate and not able to figure this out after various trials.!!!</p>

<p>I have mapped the tables using one-to-one mapping...</p>