I have a problem with OpenJPA
I try to read all rows from a table but the primary key has always a same value(value = 0)!?!?!?
for (Object o : em.createQuery("select x from AnnouncementsEntry x")
.getResultList()) {
//alway returns "0" in every row
long id = ((AnnouncementsEntry) o).getEntryId();
my entry:
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long entryId;