Re: Retrieve attribute size constraints?

From: Kevin Menard (nirvdru..egativetwenty.net)
Date: Mon Jan 31 2005 - 17:44:12 EST

  • Next message: Andrus Adamchik: "Re: Problems with CommitChanges and object PersistenceState"

    On Jan 31, 2005, at 4:23 PM, Andrus Adamchik wrote:

    > ObjEntity objEntity =
    > context.getEntityResolver().lookupObjEntity(object);
    > ObjAttribute objAttribute = (ObjAttribute)
    > objEntity.getAttribute(property);
    > int maxLength = objAttribute.getDbAttribute().getMaxLength();

    Ahh, I looked at ObjAttribute, but I guess I didn't go far enough.

    Thanks,
    Kevin



    This archive was generated by hypermail 2.0.0 : Mon Jan 31 2005 - 17:44:48 EST