[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model DomainFacade.java,1.2,1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-09-21 07:59:51
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13718/src/net/sourceforge/bprocessor/model Modified Files: DomainFacade.java Log Message: Correct the query in findBySurface() Index: DomainFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/DomainFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DomainFacade.java 20 Sep 2005 12:56:45 -0000 1.2 --- DomainFacade.java 21 Sep 2005 07:59:39 -0000 1.3 *************** *** 111,115 **** * @return the set of domains */ ! public Set findBySurface(Surface surface) { Set result = new HashSet(); --- 111,115 ---- * @return the set of domains */ ! public synchronized Set findBySurface(Surface surface) { Set result = new HashSet(); *************** *** 120,127 **** tx = session.beginTransaction(); - //this query is wrong Query q = session.createQuery("SELECT d FROM Domain AS d " + "JOIN d.surfaces AS surfaces " + ! "WHERE surfaces.id = :id AND d.id = f.id"); q.setLong("id", surface.getId().longValue()); --- 120,126 ---- tx = session.beginTransaction(); Query q = session.createQuery("SELECT d FROM Domain AS d " + "JOIN d.surfaces AS surfaces " + ! "WHERE surfaces.id = :id"); q.setLong("id", surface.getId().longValue()); |