cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@xsinet.co.za
Subject Metadata access
Date Fri, 19 Oct 2012 09:16:01 GMT
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