|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HibernateIntegration
Criteria
objects, and results
returned via a Smart GWT DSResponse. serverType
:"hibernate". Mapping DSRequest/DSResponse to Hibernate
This integration strategy uses
the server-side Java APIs described in ServerDataIntegration
. Two complete examples of
Hibernate integration are provided in the SDK, one using com.smartgwt.client..DMI
and one using RPCManager
dispatch. Both are accessible from the SDK Explorer as Examples->Server
Integration, and both include sample Hibernate configuration as well as a sample UI capable of loading and saving data.
operationType
s via
Hibernate for a sample bean. com.smartgwt.client..DMI
) to implement all four DataSource operations with Hibernate. This particular example uses
'Spring'
-based lookup of the target for DMI, however, the same
approach will work without Spring - see other DMI examples on the same page for non-Spring methods of DMI target lookup.
com.smartgwt.client..DMI
, whether to use DMI or RPCManager dispatch is largely a matter
of preference, however if you are already using Spring, a DMI-based approach is probably a better fit. serverType:"hibernate"
As with DataSources using Smart GWT's built-in 'SQL engine'
, you need only 'create a DataSource'
in XML format - no Java classes or other
configuration are required. The 'Admin Console'
's "Import DataSources"
section can be used to import test data into serverType:"hibernate" DataSources in the same manner as SQLDataSources.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |