Pojo pojo = new Pojo(); //Fill pojo with info.... entityManager.persist(pojo); pojo.getId(); //There it is.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097229#4097229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097229