You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2007/06/30 15:20:41 UTC
[Tapestry Wiki] Update of "SimpleHibernateTableModel" by NickWestgate
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by NickWestgate:
http://wiki.apache.org/tapestry/SimpleHibernateTableModel
------------------------------------------------------------------------------
this is a simple implementation of a BasicTableModel for the contrib:Table to list hibernate entities.
+ {{{
- {{{package de.hsofttec.core4.component.table;
+ package de.hsofttec.core4.component.table;
import java.util.Iterator;
import java.util.regex.Pattern;
@@ -18, +19 @@
import org.hibernate.Session;
/**
+ * a simple tablemodel with hibernate integration
- * @author <a href="mailto:shomburg@hsofttec.com">S.Homburg</a>
- * @version $Id: Core4TableModel.java 32 2006-01-30 17:34:17Z shomburg $
*/
public class Core4TableModel implements IBasicTableModel
{
@@ -92, +92 @@
*/
private String convertQueryString(String originalQueryString)
{
- String tempQueryString =
- StringUtils.substring(originalQueryString, StringUtils.indexOf(StringUtils.upperCase(originalQueryString), "FROM"));
+ String tempQueryString = StringUtils.substring(originalQueryString, StringUtils.indexOf(StringUtils.upperCase(originalQueryString), "FROM"));
String convertedQueryString = "SELECT COUNT(*) ";
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org