Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv6773/impl
Modified Files:
SessionFactoryImpl.java
Log Message:
fixed bug in Filter cache
Index: SessionFactoryImpl.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl/SessionFactoryImpl.java,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** SessionFactoryImpl.java 4 Mar 2003 10:43:06 -0000 1.64
--- SessionFactoryImpl.java 10 Apr 2003 09:53:40 -0000 1.65
***************
*** 314,318 ****
public FilterTranslator getFilter(String query, String collectionRole, boolean scalar) throws QueryException, MappingException {
! String cacheKey = (scalar?'#':'*') + query; //a but expedient, i know....
FilterTranslator q = (FilterTranslator) queryCache.get(cacheKey);
--- 314,318 ----
public FilterTranslator getFilter(String query, String collectionRole, boolean scalar) throws QueryException, MappingException {
! String cacheKey = collectionRole + (scalar?'#':'*') + query; //a but expedient, i know....
FilterTranslator q = (FilterTranslator) queryCache.get(cacheKey);
|