ContainerHierarchicalWrapper and SQLContainer

Bonjour,
I wish to map a TreeTable with an SQLContainer. I already seen some solutions on other posts, typically by implementing the Container.Hierarchical interface.
Instead of these solutions, is it possible to use the ContainerHierarchicalWrapper to achieve the same goal ?

I tried without success something like this :

ContainerHierarchicalWrapper container = null;
HierarchicalContainerOrderedWrapper tri = null;
SQLContainer sql = null;
try
{
TableQuery tq = new TableQuery(“Libelle”, connectionPool, generator);
sql = new SQLContainer(tq);
OrderBy orderBy = new OrderBy(cle, true);
sql.addOrderBy(orderBy);
container = new ContainerHierarchicalWrapper(sql);
tri = new HierarchicalContainerOrderedWrapper(container);

	} catch (Exception e) {
		e.printStackTrace();
	}
	TreeTable tree = null;
    if (tri != null) {
		tree = new TreeTable("effectif = " + container.size(), tri);
		tree.setPageLength(20);
		tree.setSizeFull();
	}

The data are displayed and properly sorted in the TreeTable but there is no hierarchy in the first column. Erery item is a root item.

Merci d’avance
Gilles