HibernateTest

A base-class for most hibernate tests. It takes care of setting up and tearing down a connection to a database using the appropriate driver and connection parameters. Tests annotated with @Test can simply use a session factory to test hibernate queries.

Members

Functions

buildDataSource
DataSource buildDataSource(ConnectionParams connectionParams)
Undocumented in source. Be warned that the author may not have intended to support it.
buildDialect
Dialect buildDialect()
Undocumented in source. Be warned that the author may not have intended to support it.
buildSchema
EntityMetaData buildSchema()
Undocumented in source.
buildSessionFactory
SessionFactory buildSessionFactory()
Undocumented in source. Be warned that the author may not have intended to support it.
setConnectionParams
void setConnectionParams(ConnectionParams connectionParams)
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
teardown
void teardown()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

connectionParams
ConnectionParams connectionParams;
Undocumented in source.
sessionFactory
SessionFactory sessionFactory;
Undocumented in source.

Meta