For example:
{code:java} @Entity(name = "Person") @IdClass(PersonId.class) public static class Person implements Serializable { @Id private String name;
@Id @Column( name = "ind") private int index; private Integer id; } {code}
Executing the following query results in a NullPointerException {{QueryException}} : {{s.createQuery( "from Person p where p.id is null", Person.class ).list()}} |
|