cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Anderson" <>
Subject RE: Generalized DB editor
Date Mon, 14 Apr 2008 15:51:38 GMT
Looks like a cast to ObjEntity is in order. Out of curiosity, is there a
reason that ObjRelationship.getTargetEntity() returns an Entity and not
an ObjEntity? The JavaDoc seems to indicate it always returns an

-----Original Message-----
From: Kevin Menard [] 
Sent: Sunday, April 13, 2008 12:11 PM
Subject: Re: Generalized DB editor

Hi Scott,

Have you considered using getTargetEntity on ObjRelationship?


On Apr 11, 2008, at 11:02 PM, Scott Anderson wrote:

> Hello,
> I'm trying to write a generic editor for CayenneDataObjects.  
> ObjAttributes are pretty straightforward, but I'm not clear on the  
> best way to handle ObjRelationships. Basically, what I want to know  
> is how to take a ObjRelationship and turn it in to a Class<? extends  
> CayenneDataObjects> representing the target type's class.
> Thanks,
> Scott

View raw message