getting object by primary key

From: martin ruff (mruf..imeon.ch)
Date: Wed Nov 27 2002 - 13:06:55 EST

  • Next message: Schneider, Eric: "RE: getting object by primary key"

    hi how do i get an object if I have the primary key?
    lets say i've got an employees table with id as prim.key

            Expression qual = ExpressionFactory.binaryPathExp(
                                             Expression.EQUAL_TO,
                                             "id",
                                             "23");
                    SelectQuery query = new SelectQuery("Employees", qual);

    fails because Employees does not have a primary key it has a map
    instead, which I understand is for composite prim. keys
    but how does my query have to look?

    thanks in advance
    martin



    This archive was generated by hypermail 2.0.0 : Wed Nov 27 2002 - 13:07:11 EST