cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Fran├žois Smigielski" <jf.smigiel...@gmail.com>
Subject Re: Listing Attributes
Date Mon, 24 Mar 2008 19:00:38 GMT
If you want to run the DbAttribute's list of your DbEntity instance, with
cayenne 3.0M3:

http://cayenne.apache.org/doc/api/org/apache/cayenne/map/DbEntity.html#getAttributes()

If you want to run the ObjAttribute's list for the ObjEntity associated to
you DbEntity, I do not know a direct way. Use an EntityResolver instance.
Anyway, this class will help you a lot:

http://cayenne.apache.org/doc/api/org/apache/cayenne/map/EntityResolver.html

Regards,

2008/3/24, Eric Polino <eric@campgroundautomation.com>:
>
> Is there a way I can get a List of the attributes for a given
> DBEntity?  For instance, I have a customer.  I want an iteratable list
> of fields I can query on.  How can I do that?
>
>
> --
> Eric Polino
> Campground Automated Systems
>


-- 
JF Smigielski

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