How do you define hibernate datasource? I have existing application with spring and hibernate. Datasource is defined as:
what I've got is:
followed by
What is the easiest way to integrate already written application/code/mappings into smartgwt? I've looked into examples and there are always fields in datasource definition. Do I need to clone hibernate mapping into field emelents ds.xml?
smartGWT version: 2.4.2011-01-06-EVAL
Code:
<DataSource ID="user" serverType="hibernate" autoDeriveSchema="true" schemaBean="hibernateSessionFactoryBean" beanClassName="org.company.bo.User" />
Code:
WARN HibernateDataSource - Declared schemaBean 'hibernateSessionFactoryBean' was not found among existing Hibernate mappi ngs. Falling back to examining the JDBC metadata.
Code:
java.lang.Exception: table DBTABLE does not exist or contains no columns.
smartGWT version: 2.4.2011-01-06-EVAL
Comment