title: JPA native query insert returning id
body: <p>I use the following code</p>
  
  <pre><code>EntityManager em.createNativeQuery("insert into users (name,surname) values (\"Test\",\"Test\") returning id").executeUpdate();
  </code></pre>
  
  <p>executeUpdate method return me 1 if insertion was success, but how can i get id of new user using the query above(my db is Postgres);</p>