Bugs item #534398, was opened at 2002-03-24 20:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=534398&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Marius Kotsbak (mkotsbak) Assigned to: Nobody/Anonymous (nobody) Summary: Comparing PK-object to object in EJB-QL Initial Comment: I tried to compare a PK-object parameter to EJB-QL to an object (entity), like this (just an example, not exactly what I did) parameter 1: PersonPK EJB-QL: select OBJECT(a) from account a where account.person = ?1 The ejb-ql parser didn't recognize this syntax. I had to change it into: parameter 1: Long personid select OBJECT(a) from account a where accout.person.personid = ?1 Is this behaviour according to sun's spec (I could not find anything about it)? If not, it is a bug! If yes, I request this feature is JBOSS-QL, as I can't see any problem with including it (it should be clear what is meant with the EJB-QL). With composite PK missing this could be annoying, as you have to include all parts of the PK. It looks like this is very much like the findByPrimaryKey, but in a EJB-QL context. I know it could be done with LocalObject as parameter, but this is ineffective if you have the pk, and have to do an extra findByPK before this EJB-QL. Marius K SW dev Boost communications A/S boostcom.no ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=534398&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
