Hi,

Before version 4.1.0 there was a method in AnyDAO, not retrieve in
current version:
    /**
     * Find any objects by derived attribute value. This method could
fail if one or more string literals contained
     * into the derived attribute value provided derive from
identifier (schema key) replacement. When you are going to
     * specify a derived attribute expression you must be quite sure
that string literals used to build the expression
     * cannot be found into the attribute values used to replace
attribute schema keys used as identifiers.
     *
     * @param expression JEXL expression
     * @param value derived attribute value
     * @param ignoreCaseMatch whether comparison for string values
should take case into account or not
     * @return list of any objects
     */
    List<A> findByDerAttrValue(String expression, String value,
boolean ignoreCaseMatch);

Question: How can I find an object based on an attribute, specialize
those that are not User or Group ?
I can understand that it can be slow, but it makes sense. Also the
name of the method seems to be specialized on Derived attributes, but
in fact worked with all attributes.

Best regards,

Stéphane POPOFF

Reply via email to