Details
Description
I tried to execute this one on the client side:
SelectById.query(Contact.class, 1).selectOne(context)
and have got an exception on server side:
Caused by: java.lang.NullPointerException
at org.apache.cayenne.query.SelectById.resolveId(SelectById.java:324)
at org.apache.cayenne.query.SelectById.createReplacementQuery(SelectById.java:297)
at org.apache.cayenne.query.IndirectQuery.getReplacementQuery(IndirectQuery.java:98)
at org.apache.cayenne.query.IndirectQuery.getMetaData(IndirectQuery.java:66)
at org.apache.cayenne.access.ClientServerChannelQueryAction.<init>(ClientServerChannelQueryAction.java:59)
Notice, SelectById.query(Contact.class, contact.objectId).selectOne(context) works well.