Hi! 2 Entity-Beans: -Brief [ actorPK, societyPK, skrontoNrPK, price ] -Actor [namePK]
PK means Primary Key, so Brief has got a composed PK. Actor wants to get the Briefs of him belonging to a certain society and a certain skronto. Actor executes this ejbSelect: | /** | * @ejb.select query = "select object(brief) from Brief brief where | * brief.actorPK=?1 and brief.societyPK=?2 and brief.skrontoNrPK=?3" | */ | public abstract Collection ejbSelectBrief(String actorPK, String societyPK, int skrontoNrPK) throws FinderException; | The calls (Try) and the results (Received) are: anonymous wrote : | Try -----> : ejbSelectBrief(admin, Bayer, 1); | Received -----> : admin, Bayer, 1 | OK | | Try -----> : ejbSelectBrief(admin, Linde, 1); | Received -----> : admin, Bayer, 1 | FALSE | How can I receive the same result but changing the parameters for the where-clause of the ejbSelect-statement? The field actorPK of Brief is not just part of the primarykey, but also the foreign key to actor, mapped to the name of the actor. Has this "strange" behavior to do with the composed primky and a part of the primkey being also a foreign key a the same time? Thank's for any hint! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839527#3839527 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839527 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user