Description
On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
[java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
[java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
[java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)