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


Reply via email to