Re: missing property, but no error

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Apr 29 2005 - 13:43:59 EDT

  • Next message: Mike Kienenberger: "Re: missing property, but no error"

    Try running this query and you will get an error.

    Expression and Query objects are not "compiled" and do not themselves make
    any assertions about the context in which they are executed. Validation is
    responsibility of the access stack that runs them.

    Andrus

    > I wrote code like this:
    >
    > Expression expression = ExpressionFactory.matchExp("username",
    > username);
    > expression.andExp(ExpressionFactory.matchExp("password",
    > password)); SelectQuery query = new SelectQuery(User.class,
    > expression);
    >
    > But I had not yet modeled the "password" attribute, or even the DB
    > column. Yet this code executed fine with no errors at all. Why is
    > that? Shouldn't I have gotten an error?
    >
    > Thanks,
    > Erik



    This archive was generated by hypermail 2.0.0 : Fri Apr 29 2005 - 13:44:01 EDT