Monday, October 5, 2009

Yonex Nanospeed 9900 Canada

table in jsf with hibernate hibernate

this example is very simple, we will fill
a table with netbeans visual web of data
a database table.

first have to generate a configuration
with jsf hibernate (which can be seen in http://ungranoparajava.blogspot.com/2009/10/jsp-con-framework-hibernate.html ) and also have to add
as the visual web framework.


here we must bear in mind that deal Query
not SQLQuery, because we have HQL ocuapar corresponding to
first mentioned, because we are working with objects.


after the init method to add the method call
mostrarEmpresa ()


@ Override public void init () {

super.init ();


try {_init ();
} catch (Exception e) {
log ("SessionBean1 Initialization Failure", e) throw e instanceof
FacesException? (FacesException) e: new FacesException (e);}


mostrarEmpresa ();}


Business class is found here, which is the representation


then look for the property table table layout

0 comments:

Post a Comment