I have a bit of a problem.

As a first approximation, I'm trying to create a new Isis ObjectStore 
that uses Cayenne.

I've got to the stage where I've created the Cayenne mappers, etc,  
and am now trying to instantiate an instance of my test class..

But now I've discovered that Cayenne requires its supported POJOs to 
implement some Cayenne interfaces and explicitly casts the 
instantiated object to the Cayenne Persistent interface.

Problem is, this interface kills the Isis introspector - it eventually hits 
interface org.apache.cayenne.util.XMLSerializable, which has a List 
(Collection) parameter.

I have two options:
1) Somehow disable the Isis introspector from walking down the 
Cayenne Persistor interface, or
2) Do some byte-code magic that is somehow able to wrap the users 
domain class picked up by Isis into something which implements 
Persisted, and can be given to Cayenne to instantiate.

Option 2 requires me to somehow create a 1-to-1 mapping between 
user domain POJOs and runtime contructed classes that implement 
the Persisted interface, which Cayenne can instantiate, but that I can 
use to intercept Cayenne methods.

Is this possible? To create new classes, based on existing classes, 
that can be instantiated?


Regards,
Kevin


Reply via email to