cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Use same entity classes for server and ROP client
Date Wed, 21 Sep 2011 02:37:24 GMT
I'm try to find out if I can make a single app that can work either with a
local DB or using ROP with a remote DB.

For the ObjectContext it looks like as long as the code uses the
ObjectContext interface that should allow to code to run against either and
there doesn't seem to be much loss of functionality from just using the
interface.

But for the entities it looks like the client should use PersistentObject
subclasses and the server should use CayenneDataObject subclasses, and
PersistentObject is missing some useful methods.  So I'm wondering what in
CayenneDataObject prevents it from being used on the client, or what in
PersistentObject prevents it from being a good fit on the server.  What is
the best way to end up with a single set of classes that supports both?

Thanks,
John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message