cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Metadata access
Date Fri, 19 Oct 2012 12:23:24 GMT
Yes, this is the correct way.

On Oct 19, 2012, at 12:16 PM, dollj@xsinet.co.za wrote:

> Hi
> 
> How can one find out through the API if a CayenneDataObject property
> (field/column) is Mandatory or not ?
> 
> Currently using 3.1B1 i'm doing something like the following:
> 
> attribMap = Cayenne.getObjEntity( dbDataObj ).getAttributeMap();
> attribMap.get( fieldPropertyName ).isMandatory();
> 
> Is this the correct way of going about it ?
> 
> Is there a way of getting this info through the CayenneDataObject itself ?
> 
> Thanks
> 
> 
> 


Mime
View raw message