Author: manaRH
Date: 2011-01-19 03:56:09 -0500 (Wed, 19 Jan 2011)
New Revision: 14002
Modified:
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
Log:
JBSEAM-4765 - changed to be compatible with Java 5
Modified:
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
===================================================================
---
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-18
20:54:12 UTC (rev 14001)
+++
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-19
08:56:09 UTC (rev 14002)
@@ -137,7 +137,7 @@
private void updateResults() {
javax.persistence.Query query = null;
- if (searchQuery == null || searchQuery.isEmpty())
+ if (searchQuery == null || "".equals(searchQuery))
{
query = entityManager.createQuery("from Product");
numberOfResults =query.getResultList().size();
Show replies by date