openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henno Vermeulen <>
Subject entityManager.find returns null (even if a row with the exact id exists in the database)
Date Fri, 11 Mar 2011 15:52:21 GMT

I have an entity with a column that is annotated with @ManyToOne(optional = false). The corresponding
database table has a row that contains null for his column. When I try to find this entity
by it's correct id using entityManager.findById, it returns null.

Is this expected behavior? I would have expected an error message.

Henno Vermeulen
Huize Molenaar

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message