-->
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.  [ 1 post ] 
Author Message
 Post subject: Help with collections
PostPosted: Wed Apr 20, 2005 8:46 am 
Newbie

Joined: Wed Mar 30, 2005 9:39 am
Posts: 1
Location: Czech Republic
Hi,

I have problem with HQL.

I have this entities:
UserAccount, Opravneny, Spis, Opravneny2Spis

UserAccount: {
ID,
Name,
....
Opravneny //collection to Opravneny
}

Opravneny {
ID,
...
}


Spis {
ID
Opravneny2Spis -> collection
}

Opravneny2Spis {
ID
File ->
}




Spis -> (1 : N) -> Opravneny2Spis
Opravneny2Spis -> (1 : N) -> Opravneny


UserAccount -> (1:N) Opravneny

and i got

cz.softeu.fw.FWException: net.sf.hibernate.QueryException: unindexed collection before []: useraccoun2_.opravneni [select spis from cz.softeu.evidence.SpisImpl spis inner join spis.opravneni2Spisy opr where opr.opravneny = some (select u.opravneni from cz.softeu.evidence.UserAccountImpl as u where u.id=4)]
cz.softeu.evidence.fw.SpisForm.preQuery(SpisForm.java:922)

in spis.opravneny2spis.opravneny is the collection of the possible users (opravneny is role of user)

in useraccount.opravneny is collection of enabled users.
I would like to display all SPIS where some "spis.opravneny2spis.opravneny" is in collection useraccount.opravneny


Thanx for help, Mila


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

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.