I have an entity with an embedded key. The entity has only the key as a field and the key has 7 fields, some of which can be null.
When I run the following query:>
I had the same issue no exception and a list of nulls the same size as the query result. I started commenting out stuff and comparing to another EmbeddedId JPA. Here is what I found out, all columns in the EmbeddedId must be non null add nullable = false to Columns on the @AttributeOverride and in the @Embedded id class. Remove null columns from the PK class.
I don't know why this works but it did.