Hi,

having

class Test
   @Id()
   @Column(name = "id", unique = true)
   @GeneratedValue(strategy = GenerationType.AUTO)
   public Long getId() {
       return this.id;
   }

em.persist(test);
test.getId() -----> IS NULL

Shouldn't it contain the generated id filled by persist?

Thanks
Marcel


--
Marcel Ruff
http://www.xmlBlaster.org
http://watchee.net
Phone: +49 7551 309371

Reply via email to