/** * Gets the length of the given property. * * @param entityName Class name of the entity * @param propertyName Java bean property name. * @return length if exists, otherwise null. */ public static Integer getPropertyLength(final String entityName, final String propertyName) { return instance.internalGetPropertyMaxLength(entityName, propertyName); }
/** * Gets the length of the given property. * * @param entityName Class name of the entity * @param propertyName Java bean property name. * @return length if exists, otherwise null. */ public static Integer getPropertyLength(final Class<?> entity, final String propertyName) { return instance.internalGetPropertyMaxLength(entity.getName(), propertyName); }