com.smartgwt.client.docs
Interface HibernateIntegration


public interface HibernateIntegration

SmartGWT can integrate with Hibernate in two main ways:

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.

As discussed under 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 SmartGWT'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.