Update of /cvsroot/hibernate/Hibernate3/src/org/hibernate/hql/ast/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19563/src/org/hibernate/hql/ast/util
Modified Files:
SessionFactoryHelper.java
Log Message:
HHH-1446 : Antlr exception handling
Index: SessionFactoryHelper.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate3/src/org/hibernate/hql/ast/util/SessionFactoryHelper.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SessionFactoryHelper.java 30 Nov 2005 13:49:03 -0000 1.3
+++ SessionFactoryHelper.java 9 Feb 2006 12:37:19 -0000 1.4
@@ -154,7 +154,8 @@
cp = findEntityPersisterByName( name );
if ( cp == null ) {
// throw new SemanticException( name + " is not mapped." );
- throw new QuerySyntaxException( new SemanticException( name + " is not mapped." ) );
+// throw new QuerySyntaxException( new SemanticException( name + " is not mapped." ) );
+ throw new QuerySyntaxException( name + " is not mapped" );
}
}
catch ( MappingException e ) {
@@ -221,7 +222,7 @@
*
* @param role The collection role
* @param roleAlias The sql column-qualification alias (i.e., the table alias)
- * @return
+ * @return the collection element columns
*/
public String[] getCollectionElementColumns(String role, String roleAlias) {
return getCollectionPropertyMapping( role ).toColumns( roleAlias, CollectionPropertyNames.COLLECTION_ELEMENTS );
|