Hello

I have a client server setup, both of which are dependent upon the same 
domain objects.  As things stand, the server depends on the client and 
subclasses the domain objects in order to add in the neo4j annotations. 
 This enables me to exclude the neo4j dependencies from the client to keep 
it lightweight.

Unfortunately, following this method I end up with a lot of duplicate code 
because I have to re-declare each property in order to annotate it.  My 
goals are twofold:

*Desires:*
1) I want to have a single domain object
2) I don't want the client to need to depend on the neo4j libraries.

The only two idea's I've had are:

*Possible solutions:*
A) To have a wrapper class in the server that keeps track of a domain 
object and annotates the getter/setter methods.  Is that even possible? 
 Something like this:

@GraphId
public String getNodeId() {...}

B) Create a third module to contain domain objects.  This module can depend 
on neo4j and be included by both client and server.  The server can use 
excludes to get rid of the unused neo4j libraries when setting up 
dependencies in maven.
 
C) ??????? 


I know for sure method B works, but it's not ideal.  I'd surely appreciate 
any ideas anyone might have for a better solution.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to