cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Nested ROP contexts and relationships
Date Tue, 24 Nov 2009 11:28:37 GMT

On Nov 24, 2009, at 1:20 PM, Andrey Razumovsky wrote:

> Have you
> ever overridden DataObject.setToOneTarget()?

I did not, but I defined 3 different types of objects (ROP, POJO, JPA)  
that don't use this approach for setting reverse relationship. So  
that's what I mean by pluggable :-)

>
> Anyways, at the minimum, as i mentioned somewhere before, i'd like  
> to see
> something helper like DataObjectUtils.readProperty(Persistent,  
> String) for
> simple and unified access to DO's properties any any tier

Property p = ClassDescriptor.getProperty(String);
p.readProperty(Object);
p.readPropertyDirectly(Object);

Andrus


Mime
View raw message