The proposed pull request is working.
Awesome, I'm still fixing a few things but it should be integrated soon.
List<?> result1 = session.createQuery( "from Person e where e.id.firstName = 'Emmanuel'" ).list();
Markus Gritsch Are you saying that this does not work? We might not have a test for this, I need to check.
PersonPK emmanuelPk = new PersonPK();
emmanuelPk.setFirstName( "Emmanuel" );
emmanuelPk.setLastName( "Bernard" );
Object result2 = session.get(Person.class, emmanuelPk);
This make sense, session.get(...) is supposed to return only one element. What f there are to users with name 'Emmanuel'? And what if one of the key does not have the surname set, how would you recognize a partial composite key from one with a null attribute (for cases where null is a valid value).
Maybe I'm missing something.
|