title: Getting id after inserting row(Spring boot/JPA)
body: <p>I have trouble with getting <code>id</code> from one <code>table</code> after a <code>new user</code> is added.</p>
  <p>I have 2 tables, the <code>user</code> and the other one that has to be joined with the <code>user</code> <code>table</code> into the <code>third table</code> which will contain <code>id</code> from those <code>2 tables</code>.</p>
  <p>For that, I need the <code>id</code> of the <code>second table</code>, which if I understood correctly have to be collected after <code>inserting</code> row.</p>
  <p>How to implement that getting id?</p>