Re: Detached instances in query parameters

2008-02-15 Thread frankca
onEntity o WHERE o = ?1 > > is needed only entity id of parametr ?1 and in both detached and new > instance is id defined. > > We must use operation em.find(PersonEntity.class, pe.getId()); which is > not good for performance. > > > > Is this prefered behavior

Detached instances in query parameters

2008-02-15 Thread Zdenek Machac
Hi, we use OpenJPA in WebLogic 10.0 server but we have experience in other JPA implementations (TopLink and Hibernate). OpenJPA is very good implementation, but we have one problem (for test I try to use 1.0.1 version). OpenJPA can not use detached instances as parameters in queries. There is