Suppose we have entity defined like this:
Then the following code will fail:
The same problems exists trying to query this entity:
See that attributes are accessed by name. In the first example IllegalArgumentException is thrown in second NPE
One nasty workaround is to check : foo_.hasSingleIdAttribute() and get attributes from the set foo_.getIdClassAttributes()
Of course there is missing @IdClass annotation in the example
Bulk closing rejected tickets in "resolved" state.