Yes, this is the correct way. On Oct 19, 2012, at 12:16 PM, [email protected] 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 > > >
