A Teneo resource is used by component implementations to access databases. Teneo is a model-relational mapping and runtime database persistence solution for the Eclipse Modeling Framework (EMF). Teneo integrates EMF with Hibernate.
General
Property
Required?
Editable?
Accepts SVars?
Description
Data Source
Y
Y
N
The name of a
JDBC resource that represents the connection to the database.
Schema Generation Type
N
N
N
Indicate whether to create or validate the schema in the database when the session factory is created:
Do Nothing - Indicate that only data is added, changed, and deleted. If the schema does not already exist, the application will experience errors when it runs.
Validate - Validate the schema.
Create - Create the schema every time the session factory is created, deleting old schema and data if it exists.
Create Drop - Same as Create, but drops the schema at the end of the session.
Update - Update the schema with the changes implied by the Java objects being mapped to the database.
Default: Do Nothing.
Dialect
Y
Y
Y
The class name of a Hibernate dialect that enables Hibernate to generate SQL optimized for a particular relational database. The supported dialects are:
Indicate how class hierarchies are mapped to tables.
SINGLE-TABLE The classes of one class hierarchy are all mapped to one table.
JOINED Each subclass has its own table. To retrieve an object from the database, the superclass and subclass tables are joined. This also applies to subclasses of subclasses.
Default: Single Table.
Advanced
Property
Required?
Editable?
Accepts SVars?
Description
Enable SQL Logging
N
N
Y
Permit data collection in the SQL Server transaction log file.
Default: Unchecked.
Batch Size
N
Y
Y
Enables JDBC batch processing.
Default: 5.
Share Session Factory
N
Y
Y
Indicate whether clients share the session factory or whether a new factory is created for each client.