This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm not able to run a query with subselect in the HQL Editor. Sakila db is used here: from Actor as actor where actor.actorId in (select filmActor.actor.actorId from FilmActor as filmActor where filmActor.film.filmId=20) However another query works fine: from Actor as actor where (select count(f.film) from actor.filmActors as f) > 10
Reproducible in latest build. May be this is due error in pre-processing of mapping files. Here's the exception : org.hibernate.DuplicateMappingException: Duplicate collection role mapping sakila.Actor.filmActors at org.hibernate.cfg.Mappings.addCollection(Mappings.java:124) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2066) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2041) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:359) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144) at org.hibernate.cfg.Configuration.add(Configuration.java:669)
Created attachment 74876 [details] IDE log file
Fixed: http://hg.netbeans.org/main/rev/4b3db7cb6d4e
v.
Adjusting the target milestone.
The fix was ported into release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/2765bf2480e3