-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: path expression to collection illegal according to spec
PostPosted: Wed Nov 15, 2006 4:09 pm 
Newbie

Joined: Fri Jun 17, 2005 2:07 am
Posts: 19
Location: Berne, Switzerland
hi,

the query over the 1:n relationship 'katergorien'

em.createQuery("select distinct k from KategorieGruppe k " +
"where k.kategorien.bezeichnung like ?1 " +
"order by k.bezeichnung asc");

works perfectly with hibernate 3.2-ga but according to the jpa spec section 4.4.4 it's illegal (and it fails in openJPA).

see also http://issues.apache.org/jira/browse/OPENJPA-81

jakob

Hibernate version:3.2-ga

Mapping documents:
@OneToMany(cascade = ALL, mappedBy = "kategoriegruppe")
public Collection<Kategorie> getKategorien()
{
return this.kategorien;
}


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs: no exception

Name and version of the database you are using: mysql 5.0.15

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 12:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Right some cases might leak due to the parser design. I know the parser is more strict in 3.2 than in 3.1.
I'm not sure we should spend time to fix this though.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.