entity equalilty and filterobjects

From: camone (camon..ynet.com)
Date: Wed Jun 23 2010 - 17:17:48 UTC

  • Next message: Joe Baldwin: "Re: Excessive Load Times (Status)"

    Hi all...
    my question about memory evaluation...
      
    i have a user entity and laboratory entity... I
    want to list users, who run the lab by memory evaluation.(user -->n user2lab n<-- lab -- many to many)List<User> allusers = .... --> from UserService
    context
    expUsers =
    ExpressionFactory.matchAllExp(user2labpath, labobject) ; --> labobject,
    from LabService context
    List<User> userList =
    expUsers.filterObject(allUserList) ;
    but it is returning empty userlist... 
    This, I think allUserlist 's and labobject of
    defining different datacontext stems. because, 
    from this part ASTEqual.java,
        static boolean evaluateAtomic(Object o1,
    Object o2) {
           ........
    return o1.equals(o2);
        }

    talking for my example o1 and o2 have the same
    value but just datacontext values are different.
    Thus we are returned as empty list
    userlist.
    because of this reasons, userList is return empty
    list...
    does anyone have an idea ?

    Note : i use cayenne-3.0

     

    ----- Özgün İleti -----

    Kimden : "camone"

    Kime : "cayenne mail list"

    Gönderme tarihi : 18/02/2010 13:00

    Konu : long table names

    hi all...

    I would

    say are the long table names... for example table name is

    system.firm or [system firm] .

    i use sqlserver2005 and cayenne 3.01M1...

    normally, sql sentence " select field1, fieild2 field3..etc from [system

    firm] "

    but how i cayenne implement long table names  will ???

    thank in advance...

            



    This archive was generated by hypermail 2.0.0 : Wed Jun 23 2010 - 17:18:23 UTC