[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel ...
Christian Bauer
christian at hibernate.org
Thu Jun 21 07:05:50 EDT 2007
User: cbauer
Date: 07/06/21 07:05:50
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel
SearchRegistry.java
Log:
Make it deploy and run on latest Seam CVS, still some bugs
Revision Changes Path
1.2 +2 -3 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel/SearchRegistry.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SearchRegistry.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel/SearchRegistry.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SearchRegistry.java 12 Jun 2007 12:30:00 -0000 1.1
+++ SearchRegistry.java 21 Jun 2007 11:05:50 -0000 1.2
@@ -68,8 +68,7 @@
if (!entityClass.isAnnotationPresent(Searchable.class) ||
!entityClass.isAnnotationPresent(org.hibernate.search.annotations.Indexed.class)) {
- log.error("Not indexed or not searchable but configured as searchable: " + entityClass.getName());
- return null;
+ throw new RuntimeException("Configured as searchable but missing @Searchable and/or @Indexed: " + entityClass.getName());
}
log.debug("extracting entity search information from: " + entityClass.getName());
More information about the jboss-cvs-commits
mailing list