Re: missing property, but no error

From: Sami Mohammed (SMOHAMME..ndependenthealth.com)
Date: Fri Apr 29 2005 - 16:08:27 EDT

  • Next message: Cris Daniluk: "RE: missing property, but no error"

    >
    > Expression expression = ExpressionFactory.matchExp("username",
    > username);
    > expression.andExp(ExpressionFactory.matchExp("password",
    > password)); SelectQuery query = new SelectQuery(User.class,
    > expression);
    >

    In the above case if we dont want the usename to be case sensentive.
    can we write the code like this
    Expression e =ExpressionFactory.likeIgnoreCaseExp("username",username);

    when i used
    Expression exprQualifier = Expression.fromString("user = ' " + username +" ' " );
    the above expression is case sensetive.

    how to get rid of the case sensetive using Expression.

    Thanks
    sami

    CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State
    confidentiality laws rules and regulations. This e-mail and attachments, if any, are intended for the designated addressee only. If you are not the designated addressee, you
    are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you
    have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your
    computer. Thank you for your attention



    This archive was generated by hypermail 2.0.0 : Fri Apr 29 2005 - 16:08:45 EDT