Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Teneo not passing hibernate.properties?
Teneo not passing hibernate.properties? [message #424959] Tue, 11 November 2008 22:13 Go to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Hello,
I'm testing a small Teneo-based class, but when I try to initialize my
dataStore, I get a warning, and the program terminates during setup. The
warning is:
org.hibernate.connection.UserSuppliedConnectionProvider - No connection
properties specified - the user must supply JDBC connections

But earlier in the run output I see my hibernate.properties read
correctly, including the JDBC connection info. How do I pass this
information through Teneo to Hibernate?

I can post my log and my source code if it would help.
Re: Teneo not passing hibernate.properties? [message #424960 is a reply to message #424959] Tue, 11 November 2008 23:27 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
Yes, can you provide the log, the source code and your hibernate.properties file?

gr. Martin

John G wrote:
> Hello,
> I'm testing a small Teneo-based class, but when I try to initialize my
> dataStore, I get a warning, and the program terminates during setup. The
> warning is:
> org.hibernate.connection.UserSuppliedConnectionProvider - No connection
> properties specified - the user must supply JDBC connections
>
> But earlier in the run output I see my hibernate.properties read
> correctly, including the JDBC connection info. How do I pass this
> information through Teneo to Hibernate?
>
> I can post my log and my source code if it would help.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo not passing hibernate.properties? [message #424975 is a reply to message #424960] Wed, 12 November 2008 14:51 Go to previous messageGo to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Martin Taal wrote:

> Hi John,
> Yes, can you provide the log, the source code and your hibernate.properties
file?

> gr. Martin

Thanks Martin, for taking the time to look at this. I am still learning,
so there's probably something obviously wrong here.

Here's the source (I separated the files with long '****' lines):

package qq.hibernate;

import java.util.Enumeration;
import java.util.List;

import org.apache.log4j.Logger;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.teneo.hibernate.HbDataStore;
import org.eclipse.emf.teneo.hibernate.HbHelper;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import qq.mob.location.Airport;
import qq.mob.location.LocationPackage;
import qq.mob.pool.PoolPackage;

public class TestAirports {

@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public final void testAirports() {

final Logger LOG = Logger.getLogger(TestAirports.class);
LOG.info("inside test");

// create the DataStore
final String dataStoreName = "AirportDataStore";
final HbDataStore dataStore =
HbHelper.INSTANCE.createRegisterDataStore(dataStoreName);
LOG.info("after creating dataStore");
// Configure the EPackages used by this DataStore
dataStore.setEPackages(new EPackage[] {PoolPackage.eINSTANCE,
LocationPackage.eINSTANCE});
LOG.info("after setting package");
// Initialize the DataStore. This sets up the Hibernate mapping
and
// creates the corresponding tables in the database.
dataStore.initialize();
LOG.info("after initialize");

Enumeration items = dataStore.getProperties().elements();
final SessionFactory sessionFactory =
dataStore.getSessionFactory();

// Open a new session and start a transaction.
Session session = sessionFactory.openSession();
session.beginTransaction();

//do something here with the data
Query query = session.createQuery("FROM Flight");
List airports = query.list();
Airport airport = (Airport) airports.get(0);
System.out.println(airport.getTitle());
session.getTransaction().commit();
session.close();
}

}

************************************************************ ****

Here's my hibernate.properties file:

######################
### Query Language ###
######################

## define query language constants / function names

hibernate.query.substitutions yes 'Y', no 'N'


## select the classic query parser

#hibernate.query.factory_class
org.hibernate.hql.classic.ClassicQueryTranslatorFactory



#################
### Platforms ###
#################

## JNDI Datasource

#hibernate.connection.datasource jdbc/test
#hibernate.connection.username db2
#hibernate.connection.password db2


## HypersonicSQL

#hibernate.dialect org.hibernate.dialect.HSQLDialect
#hibernate.connection.driver_class org.hsqldb.jdbcDriver
#hibernate.connection.username sa
#hibernate.connection.password
#hibernate.connection.url jdbc:hsqldb:./build/db/hsqldb/hibernate
#hibernate.connection.url jdbc:hsqldb:hsql://localhost
#hibernate.connection.url jdbc:hsqldb:test

## H2 (www.h2database.com)
#hibernate.dialect org.hibernate.dialect.H2Dialect
#hibernate.connection.driver_class org.h2.Driver
#hibernate.connection.username sa
#hibernate.connection.password
#hibernate.connection.url jdbc:h2:mem:./build/db/h2/hibernate
#hibernate.connection.url jdbc:h2:testdb/h2test
#hibernate.connection.url jdbc:h2:mem:imdb1
#hibernate.connection.url jdbc:h2:tcp://dbserv:8084/sample;
#hibernate.connection.url jdbc:h2:ssl://secureserv:8085/sample;
#hibernate.connection.url jdbc:h2:ssl://secureserv/testdb;cipher=AES

## MySQL

#hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
#hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver

hibernate.connection.url jdbc:mysql://localhost:3306/epidb
#hibernate.connection.url jdbc:mysql://localhost:3306/epi_small
#hibernate.connection.url jdbc:mysql://localhost:3306/epi_synth
#hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epidb
#hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epi_small
#hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epi_synth
hibernate.connection.username epiuser
hibernate.connection.password grendelhash

## Oracle

#hibernate.dialect org.hibernate.dialect.OracleDialect
#hibernate.dialect org.hibernate.dialect.Oracle9Dialect
#hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
#hibernate.connection.username ora
#hibernate.connection.password ora
#hibernate.connection.url jdbc:oracle:thin:@localhost:1521:orcl
#hibernate.connection.url jdbc:oracle:thin:@localhost:1522:XE


## PostgreSQL

#hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
#hibernate.connection.driver_class org.postgresql.Driver
#hibernate.connection.url jdbc:postgresql:template1
#hibernate.connection.username pg
#hibernate.connection.password


## DB2

#hibernate.dialect org.hibernate.dialect.DB2Dialect
#hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
#hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
#hibernate.connection.url jdbc:db2://localhost:50000/somename
#hibernate.connection.url jdbc:db2:somename
#hibernate.connection.username db2
#hibernate.connection.password db2

## TimesTen

#hibernate.dialect org.hibernate.dialect.TimesTenDialect
#hibernate.connection.driver_class com.timesten.jdbc.TimesTenDriver
#hibernate.connection.url jdbc:timesten:direct:test
#hibernate.connection.username
#hibernate.connection.password

## DB2/400

#hibernate.dialect org.hibernate.dialect.DB2400Dialect
#hibernate.connection.username user
#hibernate.connection.password password

## Native driver
#hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
#hibernate.connection.url jdbc:db2://systemname

## Toolbox driver
#hibernate.connection.driver_class com.ibm.as400.access.AS400JDBCDriver
#hibernate.connection.url jdbc:as400://systemname


## Derby (not supported!)

#hibernate.dialect org.hibernate.dialect.DerbyDialect
#hibernate.connection.driver_class org.apache.derby.jdbc.EmbeddedDriver
#hibernate.connection.username
#hibernate.connection.password
#hibernate.connection.url jdbc:derby:build/db/derby/hibernate;create=true


## Sybase

#hibernate.dialect org.hibernate.dialect.SybaseDialect
#hibernate.connection.driver_class com.sybase.jdbc2.jdbc.SybDriver
#hibernate.connection.username sa
#hibernate.connection.password sasasa
#hibernate.connection.url jdbc:sybase:Tds:co3061835-a:5000/tempdb


## Mckoi SQL

#hibernate.dialect org.hibernate.dialect.MckoiDialect
#hibernate.connection.driver_class com.mckoi.JDBCDriver
#hibernate.connection.url jdbc:mckoi:///
#hibernate.connection.url jdbc:mckoi:local://C:/mckoi1.0.3/db.conf
#hibernate.connection.username admin
#hibernate.connection.password nimda


## SAP DB

#hibernate.dialect org.hibernate.dialect.SAPDBDialect
#hibernate.connection.driver_class com.sap.dbtech.jdbc.DriverSapDB
#hibernate.connection.url jdbc:sapdb://localhost/TST
#hibernate.connection.username TEST
#hibernate.connection.password TEST
#hibernate.query.substitutions yes 'Y', no 'N'


## MS SQL Server

#hibernate.dialect org.hibernate.dialect.SQLServerDialect
#hibernate.connection.username sa
#hibernate.connection.password sa

## JSQL Driver
#hibernate.connection.driver_class com.jnetdirect.jsql.JSQLDriver
#hibernate.connection.url jdbc:JSQLConnect://1E1/test

## JTURBO Driver
#hibernate.connection.driver_class com.newatlanta.jturbo.driver.Driver
#hibernate.connection.url jdbc:JTurbo://1E1:1433/test

## WebLogic Driver
#hibernate.connection.driver_class weblogic.jdbc.mssqlserver4.Driver
#hibernate.connection.url jdbc:weblogic:mssqlserver4:1E1:1433

## Microsoft Driver (not recommended!)
#hibernate.connection.driver_class
com.microsoft.jdbc.sqlserver.SQLServerDriver
#hibernate.connection.url
jdbc:microsoft:sqlserver://1E1;DatabaseName=test;SelectMethod=cursor

## The New Microsoft Driver
#hibernate.connection.driver_class
com.microsoft.sqlserver.jdbc.SQLServerDriver
#hibernate.connection.url jdbc:sqlserver://localhost

## jTDS (since version 0.9)
#hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
#hibernate.connection.url jdbc:jtds:sqlserver://1E1/test

## Interbase

#hibernate.dialect org.hibernate.dialect.InterbaseDialect
#hibernate.connection.username sysdba
#hibernate.connection.password masterkey

## DO NOT specify hibernate.connection.sqlDialect

## InterClient

#hibernate.connection.driver_class interbase.interclient.Driver
#hibernate.connection.url
jdbc:interbase://localhost:3060/C:/firebird/test.gdb

## Pure Java

#hibernate.connection.driver_class org.firebirdsql.jdbc.FBDriver
#hibernate.connection.url
jdbc:firebirdsql:localhost/3050:/firebird/test.gdb


## Pointbase

#hibernate.dialect org.hibernate.dialect.PointbaseDialect
#hibernate.connection.driver_class com.pointbase.jdbc.jdbcUniversalDriver
#hibernate.connection.url jdbc:pointbase:embedded:sample
#hibernate.connection.username PBPUBLIC
#hibernate.connection.password PBPUBLIC


## Ingres

## older versions (before Ingress 2006)

#hibernate.dialect org.hibernate.dialect.IngresDialect
#hibernate.connection.driver_class ca.edbc.jdbc.EdbcDriver
#hibernate.connection.url jdbc:edbc://localhost:II7/database
#hibernate.connection.username user
#hibernate.connection.password password

## Ingres 2006 or later

#hibernate.dialect org.hibernate.dialect.IngresDialect
#hibernate.connection.driver_class com.ingres.jdbc.IngresDriver
#hibernate.connection.url
jdbc:ingres://localhost:II7/database;CURSOR=READONLY;auto=multi
#hibernate.connection.username user
#hibernate.connection.password password

## Mimer SQL

#hibernate.dialect org.hibernate.dialect.MimerSQLDialect
#hibernate.connection.driver_class com.mimer.jdbc.Driver
#hibernate.connection.url jdbc:mimer:multi1
#hibernate.connection.username hibernate
#hibernate.connection.password hibernate


## InterSystems Cache

#hibernate.dialect org.hibernate.dialect.Cache71Dialect
#hibernate.connection.driver_class com.intersys.jdbc.CacheDriver
#hibernate.connection.username _SYSTEM
#hibernate.connection.password SYS
#hibernate.connection.url jdbc:Cache://127.0.0.1:1972/HIBERNATE


#################################
### Hibernate Connection Pool ###
#################################

#hibernate.connection.pool_size 1



###########################
### C3P0 Connection Pool###
###########################

hibernate.c3p0.max_size 20
hibernate.c3p0.min_size 5
hibernate.c3p0.timeout 1800
hibernate.c3p0.max_statements 100
hibernate.c3p0.idle_test_period 3000
hibernate.c3p0.acquire_increment 2
hibernate.c3p0.validate false



##############################
### Proxool Connection Pool###
##############################

## Properties for external configuration of Proxool

hibernate.proxool.pool_alias pool1

## Only need one of the following

hibernate.proxool.existing_pool true
#hibernate.proxool.xml proxool.xml
#hibernate.proxool.properties proxool.properties



#################################
### Plugin ConnectionProvider ###
#################################

## use a custom ConnectionProvider (if not set, Hibernate will choose a
built-in ConnectionProvider using hueristics)

#hibernate.connection.provider_class
org.hibernate.connection.DriverManagerConnectionProvider
#hibernate.connection.provider_class
org.hibernate.connection.DatasourceConnectionProvider
hibernate.connection.provider_class
org.hibernate.connection.C3P0ConnectionProvider
#hibernate.connection.provider_class
org.hibernate.connection.ProxoolConnectionProvider



#######################
### Transaction API ###
#######################

## Enable automatic flush during the JTA beforeCompletion() callback
## (This setting is relevant with or without the Transaction API)

#hibernate.transaction.flush_before_completion


## Enable automatic session close at the end of transaction
## (This setting is relevant with or without the Transaction API)

#hibernate.transaction.auto_close_session


## the Transaction API abstracts application code from the underlying JTA
or JDBC transactions

#hibernate.transaction.factory_class
org.hibernate.transaction.JTATransactionFactory
#hibernate.transaction.factory_class
org.hibernate.transaction.JDBCTransactionFactory


## to use JTATransactionFactory, Hibernate must be able to locate the
UserTransaction in JNDI
## default is java:comp/UserTransaction
## you do NOT need this setting if you specify
hibernate.transaction.manager_lookup_class

#jta.UserTransaction jta/usertransaction
#jta.UserTransaction javax.transaction.UserTransaction
#jta.UserTransaction UserTransaction


## to use the second-level cache with JTA, Hibernate must be able to
obtain the JTA TransactionManager

#hibernate.transaction.manager_lookup_class
org.hibernate.transaction.JBossTransactionManagerLookup
#hibernate.transaction.manager_lookup_class
org.hibernate.transaction.WeblogicTransactionManagerLookup
#hibernate.transaction.manager_lookup_class
org.hibernate.transaction.WebSphereTransactionManagerLookup
#hibernate.transaction.manager_lookup_class
org.hibernate.transaction.OrionTransactionManagerLookup
#hibernate.transaction.manager_lookup_class
org.hibernate.transaction.ResinTransactionManagerLookup



##############################
### Miscellaneous Settings ###
##############################

## print all generated SQL to the console

hibernate.show_sql false


## format SQL in log and console

hibernate.format_sql true


## add comments to the generated SQL

#hibernate.use_sql_comments true


## generate statistics

#hibernate.generate_statistics true


## auto schema export

#hibernate.hbm2ddl.auto create-drop
#hibernate.hbm2ddl.auto create
#hibernate.hbm2ddl.auto update
#hibernate.hbm2ddl.auto validate


## specify a default schema and catalog for unqualified tablenames

#hibernate.default_schema test
#hibernate.default_catalog test


## enable ordering of SQL UPDATEs by primary key

#hibernate.order_updates true


## set the maximum depth of the outer join fetch tree

hibernate.max_fetch_depth 1


## set the default batch size for batch fetching

#hibernate.default_batch_fetch_size 8


## rollback generated identifier values of deleted entities to default
values

#hibernate.use_identifer_rollback true


## enable bytecode reflection optimizer (disabled by default)

#hibernate.bytecode.use_reflection_optimizer true



#####################
### JDBC Settings ###
#####################

## specify a JDBC isolation level

#hibernate.connection.isolation 4


## enable JDBC autocommit (not recommended!)

#hibernate.connection.autocommit true


## set the JDBC fetch size

#hibernate.jdbc.fetch_size 25


## set the maximum JDBC 2 batch size (a nonzero value enables batching)

#hibernate.jdbc.batch_size 5
#hibernate.jdbc.batch_size 0


## enable batch updates even for versioned data

hibernate.jdbc.batch_versioned_data true


## enable use of JDBC 2 scrollable ResultSets (specifying a Dialect will
cause Hibernate to use a sensible default)

#hibernate.jdbc.use_scrollable_resultset true


## use streams when writing binary types to / from JDBC

hibernate.jdbc.use_streams_for_binary true


## use JDBC 3 PreparedStatement.getGeneratedKeys() to get the identifier
of an inserted row

#hibernate.jdbc.use_get_generated_keys false


## choose a custom JDBC batcher

# hibernate.jdbc.factory_class


## enable JDBC result set column alias caching
## (minor performance enhancement for broken JDBC drivers)

# hibernate.jdbc.wrap_result_sets


## choose a custom SQL exception converter

#hibernate.jdbc.sql_exception_converter



##########################
### Second-level Cache ###
##########################

## optimize chache for minimal "puts" instead of minimal "gets" (good for
clustered cache)

#hibernate.cache.use_minimal_puts true


## set a prefix for cache region names

hibernate.cache.region_prefix hibernate.test


## disable the second-level cache

#hibernate.cache.use_second_level_cache false


## enable the query cache

#hibernate.cache.use_query_cache true


## store the second-level cache entries in a more human-friendly format

#hibernate.cache.use_structured_entries true


## choose a cache implementation

#hibernate.cache.provider_class org.hibernate.cache.EhCacheProvider
#hibernate.cache.provider_class org.hibernate.cache.EmptyCacheProvider
hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider
#hibernate.cache.provider_class org.hibernate.cache.TreeCacheProvider
#hibernate.cache.provider_class org.hibernate.cache.OSCacheProvider
#hibernate.cache.provider_class org.hibernate.cache.SwarmCacheProvider


## choose a custom query cache implementation

#hibernate.cache.query_cache_factory



############
### JNDI ###
############

## specify a JNDI name for the SessionFactory

#hibernate.session_factory_name hibernate/session_factory


## Hibernate uses JNDI to bind a name to a SessionFactory and to look up
the JTA UserTransaction;
## if hibernate.jndi.* are not specified, Hibernate will use the default
InitialContext() which
## is the best approach in an application server

#file system
#hibernate.jndi.class com.sun.jndi.fscontext.RefFSContextFactory
#hibernate.jndi.url file:/

#WebSphere
#hibernate.jndi.class com.ibm.websphere.naming.WsnInitialContextFactory
#hibernate.jndi.url iiop://localhost:900/

************************************************************ ****

Here's the log output:

0 [main] INFO qq.hibernate.TestAirports - inside test
171 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating emf
data store and registering it under name: AirportDataStore
265 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
Initializing protocol/extension for hibernate
265 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Returning
created emf data store, initialize this newly created data store!
265 [main] INFO qq.hibernate.TestAirports - after creating dataStore
1343 [main] INFO qq.hibernate.TestAirports - after setting package
1390 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder classname:
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder default: true
1390 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator classname:
org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator default: true
1390 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
classname:
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
default: true
1406 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
classname:
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
default: true
1406 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper classname:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper default: true
1406 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.classloader.ClassLoaderStrategy classname:
org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy default: true
1421 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.mapping.strategy.EntityNameStrategy classname:
org.eclipse.emf.teneo.mapping.strategy.impl.EntityResolvingN ameStrategy
default: true
1421 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.mapping.strategy.SQLNameStrategy classname:
org.eclipse.emf.teneo.mapping.strategy.impl.TeneoSQLNameStra tegy default:
true
1421 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceContentH andler
classname:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceContentH andler
default: true
1421 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.xml.XmlElementToEStructura lFeatureMapper
classname:
org.eclipse.emf.teneo.annotations.xml.XmlElementToEStructura lFeatureMapper
default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.PersistenceOptions classname:
org.eclipse.emf.teneo.PersistenceOptions default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator classname:
org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator classname:
org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
classname:
org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.SingleAttributeAnno tator
classname:
org.eclipse.emf.teneo.annotations.mapper.SingleAttributeAnno tator default:
true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.BidirectionalManyTo ManyAnnotator
classname:
org.eclipse.emf.teneo.annotations.mapper.BidirectionalManyTo ManyAnnotator
default: true
1437 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.UnidirectionalManyT oManyAnnotator
classname:
org.eclipse.emf.teneo.annotations.mapper.UnidirectionalManyT oManyAnnotator
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator classname:
org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
classname:
org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
classname:
org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
classname:
org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.HbContext classname:
org.eclipse.emf.teneo.hibernate.HbContext default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rAccessor
classname:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rAccessor
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDAccessor
classname:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDAccessor
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryFeatureURIPropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryFeatureURIPropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryPropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryPropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapP ropertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapP ropertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler
classname:
org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.EMFInterceptor
classname: org.eclipse.emf.teneo.hibernate.EMFInterceptor default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
classname:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEMap
classname:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEMap
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableFeatureMap
classname:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableFeatureMap
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.elist.HbExtraLazyPer sistableEList
classname:
org.eclipse.emf.teneo.hibernate.mapping.elist.HbExtraLazyPer sistableEList
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.elist.MapHibernatePe rsistableEMap
classname:
org.eclipse.emf.teneo.hibernate.mapping.elist.MapHibernatePe rsistableEMap
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator
classname:
org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.MappingContext classname:
org.eclipse.emf.teneo.hibernate.mapper.MappingContext default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
classname: org.eclipse.emf.teneo.hibernate.mapper.BasicMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.EmbeddedMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.EmbeddedMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
classname: org.eclipse.emf.teneo.hibernate.mapper.EntityMapper default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.mapper.FeatureMapper
classname: org.eclipse.emf.teneo.hibernate.mapper.FeatureMapper default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.hibernate.mapper.IdMapper
classname: org.eclipse.emf.teneo.hibernate.mapper.IdMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.ManyAttributeMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.ManyAttributeMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.ManyToManyMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.ManyToManyMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.MappingContext classname:
org.eclipse.emf.teneo.hibernate.mapper.MappingContext default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapper.OneToOneMapper classname:
org.eclipse.emf.teneo.hibernate.mapper.OneToOneMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener
classname:
org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.association.EmbeddedMapper classname:
org.eclipse.emf.teneo.jpox.mapper.association.EmbeddedMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.association.ManyToManyMapp er classname:
org.eclipse.emf.teneo.jpox.mapper.association.ManyToManyMapp er default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.association.ManyToOneMappe r classname:
org.eclipse.emf.teneo.jpox.mapper.association.ManyToOneMappe r default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.association.OneToManyMappe r classname:
org.eclipse.emf.teneo.jpox.mapper.association.OneToManyMappe r default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.association.OneToOneMapper classname:
org.eclipse.emf.teneo.jpox.mapper.association.OneToOneMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.BasicMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.BasicMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.ColumnMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.ColumnMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er classname:
org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.jpox.mapper.property.IdMapper
classname: org.eclipse.emf.teneo.jpox.mapper.property.IdMapper default:
true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.InheritanceMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.InheritanceMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.JoinColumnMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.JoinColumnMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.ManyBasicMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.ManyBasicMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.property.TableMapper classname:
org.eclipse.emf.teneo.jpox.mapper.property.TableMapper default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator classname:
org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.jpox.mapper.MappingContext
classname: org.eclipse.emf.teneo.jpox.mapper.MappingContext default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point: org.eclipse.emf.teneo.jpox.mapper.NamingHandler
classname: org.eclipse.emf.teneo.jpox.mapper.NamingHandler default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder classname:
org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
default: true
1452 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper classname:
org.eclipse.emf.teneo.hibernate.annotations.HbXmlPersistence Mapper
default: true
1468 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEFeatureAnnota tor default:
true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyAttri buteAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnot ator default:
true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyRefer enceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToOneRefere nceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbManyToOneRefer enceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder classname:
org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper classname:
org.eclipse.emf.teneo.hibernate.annotations.HbXmlPersistence Mapper
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEFeatureAnnota tor default:
true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyAttri buteAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnot ator default:
true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyRefer enceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbOneToOneRefere nceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Registering point:
org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbManyToOneRefer enceAnnotator
default: true
1515 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbSessionDataStore -
Initializing Hb Session DataStore
1515 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbSessionDataStore -
>>>>> Creating HB Configuration
1593 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.2.4.sp1
1718 [main] INFO org.hibernate.cfg.Environment - loaded properties from
resource hibernate.properties: {hibernate.connection.password=****,
hibernate.c3p0.acquire_increment=2,
hibernate.jdbc.batch_versioned_data=true,
hibernate.query.substitutions=yes 'Y', no 'N',
hibernate.cache.region_prefix=hibernate.test,
hibernate.c3p0.idle_test_period=3000, hibernate.show_sql=false,
hibernate.proxool.pool_alias=pool1, hibernate.c3p0.max_statements=100,
hibernate.bytecode.use_reflection_optimizer=false,
hibernate.c3p0.validate=false, hibernate.c3p0.timeout=1800,
hibernate.jdbc.use_streams_for_binary=true, hibernate.max_fetch_depth=1,
hibernate.c3p0.min_size=5, hibernate.format_sql=true,
hibernate.connection.username=epiuser,
hibernate.connection.driver_class=com.mysql.jdbc.Driver,
hibernate.cache.provider_class=org.hibernate.cache.Hashtable CacheProvider,
hibernate.c3p0.max_size=20,
hibernate.connection.provider_class=org.hibernate.connection .C3P0ConnectionProvider,
hibernate.proxool.existing_pool=true,
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect,
hibernate.connection.url=jdbc:mysql://localhost:3306/epidb}
1734 [main] INFO org.hibernate.cfg.Environment - using java.io streams
to persist binary types
1734 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name
: cglib
1749 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4
java.sql.Timestamp handling
1874 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Searching extension org.eclipse.emf.teneo.PersistenceOptions
1874 [main] INFO
org.eclipse.emf.teneo.classloader.ClassClassLoaderStrategy - Class loader
strategy set to:
org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
1874 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Initargs passed, using constructor for class
org.eclipse.emf.teneo.PersistenceOptions
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions - Properties
of PersistenceOptions:
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.fetch_containment_eagerly: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.version_column: e_version
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.disable_econtainer: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.default_cache_strategy: NONE
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.sql_name_escape_character: `
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.set_default_cascade_on_non_containment:
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.map_all_lists_as_idbag: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.max_sql_name_length: -1
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.default_temporal: TIMESTAMP
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.emap_as_true_map: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.default_varchar_length: -1
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.default_id_column: e_id
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.also_map_as_class: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.add_index_for_fk: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.java_class_entity_names: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.join_table_naming_strategy: unique
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.XSDDateClass: javax.xml.datatype.XMLGregorianCalendar
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.always_version: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.idbag_id_column_name: ID
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.max_comment_length: 0
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.set_entity_automatically: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.hibernate_mapping_file: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.set_foreign_key_name: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.cascade_policy_on_containment: ALL
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.id_feature_as_primary_key: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.set_generated_value_on_id_feature: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.runtime.update_schema: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.strategy: lowercase
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.UserDateTimeType:
org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.always_map_list_as_bag: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.join_column_naming_strategy: unique
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.set_proxy: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.UserDateType: org.eclipse.emf.teneo.hibernate.mapping.XSDDate
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.cascade_policy_on_non_containment:
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.ignore_eannotations: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.naming.default_id_feature: e_id
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.optimistic_locking: true
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.map_embeddable_as_embedded: false
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.cascade_all_on_containment:
1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
teneo.mapping.join_table_for_non_contained_associations: true
1874 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Created extensionPoint instance: org.eclipse.emf.teneo.PersistenceOptions
1874 [main] WARN org.eclipse.emf.teneo.extension.DefaultExtensionManager
- The extension: org.eclipse.emf.teneo.PersistenceOptions is declared as a
singleton but this getInstance call passed initialization parameters so
it is not cached, org.eclipse.emf.teneo.PersistenceOptions
1874 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
Generating mapping file from in-mem ecore
1874 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Searching extension
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
1890 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Created extensionPoint instance:
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
1890 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Caching extension instance as singleton point:
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
classname:
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
default: true
1890 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Searching extension
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder
1905 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Created extensionPoint instance:
org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
1905 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Caching extension instance as singleton point:
org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder classname:
org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
default: true
1905 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder -
Creating pamodel for the following epackages
1905 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder - pool
2124 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder -
location
2140 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder -
Create base pannotated model
2140 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder -
Deprecated eannotations with http://annotations.elver.org or
http://ejb.elver.org are ignored.
2140 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder -
Parse annotations
2140 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Searching extension
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
2140 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Created extensionPoint instance:
org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
2140 [main] DEBUG org.eclipse.emf.teneo.extension.DefaultExtensionManager
- Caching extension instance as singleton point:
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
classname:
org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
default: true
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing package pool
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing pool
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing EpiPool
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing eclass EpiPool
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing healthyIn
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing healthyOut
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing populationIn
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing populationOut
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing poolState
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing PoolState
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing eclass PoolState
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing disease
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing suseptableIn
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Processing suseptableOut
2155 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 0
2155 [
Re: Teneo not passing hibernate.properties? [message #424980 is a reply to message #424975] Wed, 12 November 2008 15:30 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
It is a guess but it seems to be related to this line in the properties:
hibernate.connection.provider_class org.hibernate.connection.C3P0ConnectionProvider

do you have the c3p0 jar file in the classpath?

What happens if you comment out this line?

gr. Martin

John G wrote:
> Martin Taal wrote:
>
>> Hi John,
>> Yes, can you provide the log, the source code and your
>> hibernate.properties
> file?
>
>> gr. Martin
>
> Thanks Martin, for taking the time to look at this. I am still learning,
> so there's probably something obviously wrong here.
> Here's the source (I separated the files with long '****' lines):
>
> package qq.hibernate;
>
> import java.util.Enumeration;
> import java.util.List;
>
> import org.apache.log4j.Logger;
> import org.eclipse.emf.ecore.EPackage;
> import org.eclipse.emf.teneo.hibernate.HbDataStore;
> import org.eclipse.emf.teneo.hibernate.HbHelper;
> import org.hibernate.Query;
> import org.hibernate.Session;
> import org.hibernate.SessionFactory;
> import org.junit.After;
> import org.junit.AfterClass;
> import org.junit.Before;
> import org.junit.BeforeClass;
> import org.junit.Test;
>
> import qq.mob.location.Airport;
> import qq.mob.location.LocationPackage;
> import qq.mob.pool.PoolPackage;
>
> public class TestAirports {
>
> @BeforeClass
> public static void setUpBeforeClass() throws Exception {
> }
> @AfterClass
> public static void tearDownAfterClass() throws Exception {
> }
> @Before
> public void setUp() throws Exception {
> }
> @After
> public void tearDown() throws Exception {
> }
> @Test
> public final void testAirports() {
>
> final Logger LOG = Logger.getLogger(TestAirports.class);
> LOG.info("inside test");
> // create the DataStore
> final String dataStoreName = "AirportDataStore";
> final HbDataStore dataStore =
> HbHelper.INSTANCE.createRegisterDataStore(dataStoreName);
> LOG.info("after creating dataStore");
> // Configure the EPackages used by this DataStore
> dataStore.setEPackages(new EPackage[] {PoolPackage.eINSTANCE,
> LocationPackage.eINSTANCE});
> LOG.info("after setting package");
> // Initialize the DataStore. This sets up the Hibernate mapping
> and // creates the corresponding tables in the database.
> dataStore.initialize();
> LOG.info("after initialize");
> Enumeration items = dataStore.getProperties().elements();
> final SessionFactory sessionFactory =
> dataStore.getSessionFactory(); // Open a new
> session and start a transaction.
> Session session = sessionFactory.openSession();
> session.beginTransaction();
> //do something here with the data
> Query query = session.createQuery("FROM Flight");
> List airports = query.list();
> Airport airport = (Airport) airports.get(0);
> System.out.println(airport.getTitle());
> session.getTransaction().commit();
> session.close();
> }
>
> }
>
> ************************************************************ ****
>
> Here's my hibernate.properties file:
>
> ######################
> ### Query Language ###
> ######################
>
> ## define query language constants / function names
>
> hibernate.query.substitutions yes 'Y', no 'N'
>
>
> ## select the classic query parser
>
> #hibernate.query.factory_class
> org.hibernate.hql.classic.ClassicQueryTranslatorFactory
>
>
>
> #################
> ### Platforms ###
> #################
>
> ## JNDI Datasource
>
> #hibernate.connection.datasource jdbc/test
> #hibernate.connection.username db2
> #hibernate.connection.password db2
>
>
> ## HypersonicSQL
>
> #hibernate.dialect org.hibernate.dialect.HSQLDialect
> #hibernate.connection.driver_class org.hsqldb.jdbcDriver
> #hibernate.connection.username sa
> #hibernate.connection.password
> #hibernate.connection.url jdbc:hsqldb:./build/db/hsqldb/hibernate
> #hibernate.connection.url jdbc:hsqldb:hsql://localhost
> #hibernate.connection.url jdbc:hsqldb:test
>
> ## H2 (www.h2database.com)
> #hibernate.dialect org.hibernate.dialect.H2Dialect
> #hibernate.connection.driver_class org.h2.Driver
> #hibernate.connection.username sa
> #hibernate.connection.password
> #hibernate.connection.url jdbc:h2:mem:./build/db/h2/hibernate
> #hibernate.connection.url jdbc:h2:testdb/h2test
> #hibernate.connection.url jdbc:h2:mem:imdb1
> #hibernate.connection.url jdbc:h2:tcp://dbserv:8084/sample;
> #hibernate.connection.url jdbc:h2:ssl://secureserv:8085/sample;
> #hibernate.connection.url jdbc:h2:ssl://secureserv/testdb;cipher=AES
>
> ## MySQL
>
> #hibernate.dialect org.hibernate.dialect.MySQLDialect
> hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
> #hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
> hibernate.connection.driver_class com.mysql.jdbc.Driver
>
> hibernate.connection.url jdbc:mysql://localhost:3306/epidb
> #hibernate.connection.url jdbc:mysql://localhost:3306/epi_small
> #hibernate.connection.url jdbc:mysql://localhost:3306/epi_synth
> #hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epidb
> #hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epi_small
> #hibernate.connection.url jdbc:mysql://BioServer.qn-niat.net:3306/epi_synth
> hibernate.connection.username epiuser
> hibernate.connection.password grendelhash
>
> ## Oracle
>
> #hibernate.dialect org.hibernate.dialect.OracleDialect
> #hibernate.dialect org.hibernate.dialect.Oracle9Dialect
> #hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
> #hibernate.connection.username ora
> #hibernate.connection.password ora
> #hibernate.connection.url jdbc:oracle:thin:@localhost:1521:orcl
> #hibernate.connection.url jdbc:oracle:thin:@localhost:1522:XE
>
>
> ## PostgreSQL
>
> #hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
> #hibernate.connection.driver_class org.postgresql.Driver
> #hibernate.connection.url jdbc:postgresql:template1
> #hibernate.connection.username pg
> #hibernate.connection.password
>
>
> ## DB2
>
> #hibernate.dialect org.hibernate.dialect.DB2Dialect
> #hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
> #hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
> #hibernate.connection.url jdbc:db2://localhost:50000/somename
> #hibernate.connection.url jdbc:db2:somename
> #hibernate.connection.username db2
> #hibernate.connection.password db2
>
> ## TimesTen
>
> #hibernate.dialect org.hibernate.dialect.TimesTenDialect
> #hibernate.connection.driver_class com.timesten.jdbc.TimesTenDriver
> #hibernate.connection.url jdbc:timesten:direct:test
> #hibernate.connection.username
> #hibernate.connection.password
> ## DB2/400
>
> #hibernate.dialect org.hibernate.dialect.DB2400Dialect
> #hibernate.connection.username user
> #hibernate.connection.password password
>
> ## Native driver
> #hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
> #hibernate.connection.url jdbc:db2://systemname
>
> ## Toolbox driver
> #hibernate.connection.driver_class com.ibm.as400.access.AS400JDBCDriver
> #hibernate.connection.url jdbc:as400://systemname
>
>
> ## Derby (not supported!)
>
> #hibernate.dialect org.hibernate.dialect.DerbyDialect
> #hibernate.connection.driver_class org.apache.derby.jdbc.EmbeddedDriver
> #hibernate.connection.username
> #hibernate.connection.password
> #hibernate.connection.url jdbc:derby:build/db/derby/hibernate;create=true
>
>
> ## Sybase
>
> #hibernate.dialect org.hibernate.dialect.SybaseDialect
> #hibernate.connection.driver_class com.sybase.jdbc2.jdbc.SybDriver
> #hibernate.connection.username sa
> #hibernate.connection.password sasasa
> #hibernate.connection.url jdbc:sybase:Tds:co3061835-a:5000/tempdb
>
>
> ## Mckoi SQL
>
> #hibernate.dialect org.hibernate.dialect.MckoiDialect
> #hibernate.connection.driver_class com.mckoi.JDBCDriver
> #hibernate.connection.url jdbc:mckoi:///
> #hibernate.connection.url jdbc:mckoi:local://C:/mckoi1.0.3/db.conf
> #hibernate.connection.username admin
> #hibernate.connection.password nimda
>
>
> ## SAP DB
>
> #hibernate.dialect org.hibernate.dialect.SAPDBDialect
> #hibernate.connection.driver_class com.sap.dbtech.jdbc.DriverSapDB
> #hibernate.connection.url jdbc:sapdb://localhost/TST
> #hibernate.connection.username TEST
> #hibernate.connection.password TEST
> #hibernate.query.substitutions yes 'Y', no 'N'
>
>
> ## MS SQL Server
>
> #hibernate.dialect org.hibernate.dialect.SQLServerDialect
> #hibernate.connection.username sa
> #hibernate.connection.password sa
>
> ## JSQL Driver
> #hibernate.connection.driver_class com.jnetdirect.jsql.JSQLDriver
> #hibernate.connection.url jdbc:JSQLConnect://1E1/test
>
> ## JTURBO Driver
> #hibernate.connection.driver_class com.newatlanta.jturbo.driver.Driver
> #hibernate.connection.url jdbc:JTurbo://1E1:1433/test
>
> ## WebLogic Driver
> #hibernate.connection.driver_class weblogic.jdbc.mssqlserver4.Driver
> #hibernate.connection.url jdbc:weblogic:mssqlserver4:1E1:1433
>
> ## Microsoft Driver (not recommended!)
> #hibernate.connection.driver_class
> com.microsoft.jdbc.sqlserver.SQLServerDriver
> #hibernate.connection.url
> jdbc:microsoft:sqlserver://1E1;DatabaseName=test;SelectMethod=cursor
>
> ## The New Microsoft Driver #hibernate.connection.driver_class
> com.microsoft.sqlserver.jdbc.SQLServerDriver
> #hibernate.connection.url jdbc:sqlserver://localhost
>
> ## jTDS (since version 0.9)
> #hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
> #hibernate.connection.url jdbc:jtds:sqlserver://1E1/test
>
> ## Interbase
>
> #hibernate.dialect org.hibernate.dialect.InterbaseDialect
> #hibernate.connection.username sysdba
> #hibernate.connection.password masterkey
>
> ## DO NOT specify hibernate.connection.sqlDialect
>
> ## InterClient
>
> #hibernate.connection.driver_class interbase.interclient.Driver
> #hibernate.connection.url
> jdbc:interbase://localhost:3060/C:/firebird/test.gdb
>
> ## Pure Java
>
> #hibernate.connection.driver_class org.firebirdsql.jdbc.FBDriver
> #hibernate.connection.url
> jdbc:firebirdsql:localhost/3050:/firebird/test.gdb
>
>
> ## Pointbase
>
> #hibernate.dialect org.hibernate.dialect.PointbaseDialect
> #hibernate.connection.driver_class com.pointbase.jdbc.jdbcUniversalDriver
> #hibernate.connection.url jdbc:pointbase:embedded:sample
> #hibernate.connection.username PBPUBLIC
> #hibernate.connection.password PBPUBLIC
>
>
> ## Ingres
>
> ## older versions (before Ingress 2006)
>
> #hibernate.dialect org.hibernate.dialect.IngresDialect
> #hibernate.connection.driver_class ca.edbc.jdbc.EdbcDriver
> #hibernate.connection.url jdbc:edbc://localhost:II7/database
> #hibernate.connection.username user
> #hibernate.connection.password password
>
> ## Ingres 2006 or later
>
> #hibernate.dialect org.hibernate.dialect.IngresDialect
> #hibernate.connection.driver_class com.ingres.jdbc.IngresDriver
> #hibernate.connection.url
> jdbc:ingres://localhost:II7/database;CURSOR=READONLY;auto=multi
> #hibernate.connection.username user
> #hibernate.connection.password password
>
> ## Mimer SQL
>
> #hibernate.dialect org.hibernate.dialect.MimerSQLDialect
> #hibernate.connection.driver_class com.mimer.jdbc.Driver
> #hibernate.connection.url jdbc:mimer:multi1
> #hibernate.connection.username hibernate
> #hibernate.connection.password hibernate
>
>
> ## InterSystems Cache
>
> #hibernate.dialect org.hibernate.dialect.Cache71Dialect
> #hibernate.connection.driver_class com.intersys.jdbc.CacheDriver
> #hibernate.connection.username _SYSTEM
> #hibernate.connection.password SYS
> #hibernate.connection.url jdbc:Cache://127.0.0.1:1972/HIBERNATE
>
>
> #################################
> ### Hibernate Connection Pool ###
> #################################
>
> #hibernate.connection.pool_size 1
>
>
>
> ###########################
> ### C3P0 Connection Pool###
> ###########################
>
> hibernate.c3p0.max_size 20
> hibernate.c3p0.min_size 5
> hibernate.c3p0.timeout 1800
> hibernate.c3p0.max_statements 100
> hibernate.c3p0.idle_test_period 3000
> hibernate.c3p0.acquire_increment 2
> hibernate.c3p0.validate false
>
>
>
> ##############################
> ### Proxool Connection Pool###
> ##############################
>
> ## Properties for external configuration of Proxool
>
> hibernate.proxool.pool_alias pool1
>
> ## Only need one of the following
>
> hibernate.proxool.existing_pool true
> #hibernate.proxool.xml proxool.xml
> #hibernate.proxool.properties proxool.properties
>
>
>
> #################################
> ### Plugin ConnectionProvider ###
> #################################
>
> ## use a custom ConnectionProvider (if not set, Hibernate will choose a
> built-in ConnectionProvider using hueristics)
>
> #hibernate.connection.provider_class
> org.hibernate.connection.DriverManagerConnectionProvider
> #hibernate.connection.provider_class
> org.hibernate.connection.DatasourceConnectionProvider
> hibernate.connection.provider_class
> org.hibernate.connection.C3P0ConnectionProvider
> #hibernate.connection.provider_class
> org.hibernate.connection.ProxoolConnectionProvider
>
>
>
> #######################
> ### Transaction API ###
> #######################
>
> ## Enable automatic flush during the JTA beforeCompletion() callback
> ## (This setting is relevant with or without the Transaction API)
>
> #hibernate.transaction.flush_before_completion
>
>
> ## Enable automatic session close at the end of transaction
> ## (This setting is relevant with or without the Transaction API)
>
> #hibernate.transaction.auto_close_session
>
>
> ## the Transaction API abstracts application code from the underlying
> JTA or JDBC transactions
>
> #hibernate.transaction.factory_class
> org.hibernate.transaction.JTATransactionFactory
> #hibernate.transaction.factory_class
> org.hibernate.transaction.JDBCTransactionFactory
>
>
> ## to use JTATransactionFactory, Hibernate must be able to locate the
> UserTransaction in JNDI
> ## default is java:comp/UserTransaction
> ## you do NOT need this setting if you specify
> hibernate.transaction.manager_lookup_class
>
> #jta.UserTransaction jta/usertransaction
> #jta.UserTransaction javax.transaction.UserTransaction
> #jta.UserTransaction UserTransaction
>
>
> ## to use the second-level cache with JTA, Hibernate must be able to
> obtain the JTA TransactionManager
>
> #hibernate.transaction.manager_lookup_class
> org.hibernate.transaction.JBossTransactionManagerLookup
> #hibernate.transaction.manager_lookup_class
> org.hibernate.transaction.WeblogicTransactionManagerLookup
> #hibernate.transaction.manager_lookup_class
> org.hibernate.transaction.WebSphereTransactionManagerLookup
> #hibernate.transaction.manager_lookup_class
> org.hibernate.transaction.OrionTransactionManagerLookup
> #hibernate.transaction.manager_lookup_class
> org.hibernate.transaction.ResinTransactionManagerLookup
>
>
>
> ##############################
> ### Miscellaneous Settings ###
> ##############################
>
> ## print all generated SQL to the console
>
> hibernate.show_sql false
>
>
> ## format SQL in log and console
>
> hibernate.format_sql true
>
>
> ## add comments to the generated SQL
>
> #hibernate.use_sql_comments true
>
>
> ## generate statistics
>
> #hibernate.generate_statistics true
>
>
> ## auto schema export
>
> #hibernate.hbm2ddl.auto create-drop
> #hibernate.hbm2ddl.auto create
> #hibernate.hbm2ddl.auto update
> #hibernate.hbm2ddl.auto validate
>
>
> ## specify a default schema and catalog for unqualified tablenames
>
> #hibernate.default_schema test
> #hibernate.default_catalog test
>
>
> ## enable ordering of SQL UPDATEs by primary key
>
> #hibernate.order_updates true
>
>
> ## set the maximum depth of the outer join fetch tree
>
> hibernate.max_fetch_depth 1
>
>
> ## set the default batch size for batch fetching
>
> #hibernate.default_batch_fetch_size 8
>
>
> ## rollback generated identifier values of deleted entities to default
> values
>
> #hibernate.use_identifer_rollback true
>
>
> ## enable bytecode reflection optimizer (disabled by default)
>
> #hibernate.bytecode.use_reflection_optimizer true
>
>
>
> #####################
> ### JDBC Settings ###
> #####################
>
> ## specify a JDBC isolation level
>
> #hibernate.connection.isolation 4
>
>
> ## enable JDBC autocommit (not recommended!)
>
> #hibernate.connection.autocommit true
>
>
> ## set the JDBC fetch size
>
> #hibernate.jdbc.fetch_size 25
>
>
> ## set the maximum JDBC 2 batch size (a nonzero value enables batching)
>
> #hibernate.jdbc.batch_size 5
> #hibernate.jdbc.batch_size 0
>
>
> ## enable batch updates even for versioned data
>
> hibernate.jdbc.batch_versioned_data true
>
>
> ## enable use of JDBC 2 scrollable ResultSets (specifying a Dialect will
> cause Hibernate to use a sensible default)
>
> #hibernate.jdbc.use_scrollable_resultset true
>
>
> ## use streams when writing binary types to / from JDBC
>
> hibernate.jdbc.use_streams_for_binary true
>
>
> ## use JDBC 3 PreparedStatement.getGeneratedKeys() to get the identifier
> of an inserted row
>
> #hibernate.jdbc.use_get_generated_keys false
>
>
> ## choose a custom JDBC batcher
>
> # hibernate.jdbc.factory_class
>
>
> ## enable JDBC result set column alias caching ## (minor performance
> enhancement for broken JDBC drivers)
>
> # hibernate.jdbc.wrap_result_sets
>
>
> ## choose a custom SQL exception converter
>
> #hibernate.jdbc.sql_exception_converter
>
>
>
> ##########################
> ### Second-level Cache ###
> ##########################
>
> ## optimize chache for minimal "puts" instead of minimal "gets" (good
> for clustered cache)
>
> #hibernate.cache.use_minimal_puts true
>
>
> ## set a prefix for cache region names
>
> hibernate.cache.region_prefix hibernate.test
>
>
> ## disable the second-level cache
>
> #hibernate.cache.use_second_level_cache false
>
>
> ## enable the query cache
>
> #hibernate.cache.use_query_cache true
>
>
> ## store the second-level cache entries in a more human-friendly format
>
> #hibernate.cache.use_structured_entries true
>
>
> ## choose a cache implementation
>
> #hibernate.cache.provider_class org.hibernate.cache.EhCacheProvider
> #hibernate.cache.provider_class org.hibernate.cache.EmptyCacheProvider
> hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider
> #hibernate.cache.provider_class org.hibernate.cache.TreeCacheProvider
> #hibernate.cache.provider_class org.hibernate.cache.OSCacheProvider
> #hibernate.cache.provider_class org.hibernate.cache.SwarmCacheProvider
>
>
> ## choose a custom query cache implementation
>
> #hibernate.cache.query_cache_factory
>
>
>
> ############
> ### JNDI ###
> ############
>
> ## specify a JNDI name for the SessionFactory
>
> #hibernate.session_factory_name hibernate/session_factory
>
>
> ## Hibernate uses JNDI to bind a name to a SessionFactory and to look up
> the JTA UserTransaction;
> ## if hibernate.jndi.* are not specified, Hibernate will use the default
> InitialContext() which
> ## is the best approach in an application server
>
> #file system
> #hibernate.jndi.class com.sun.jndi.fscontext.RefFSContextFactory
> #hibernate.jndi.url file:/
>
> #WebSphere
> #hibernate.jndi.class com.ibm.websphere.naming.WsnInitialContextFactory
> #hibernate.jndi.url iiop://localhost:900/
>
> ************************************************************ ****
>
> Here's the log output:
>
> 0 [main] INFO qq.hibernate.TestAirports - inside test
> 171 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating
> emf data store and registering it under name: AirportDataStore
> 265 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
> Initializing protocol/extension for hibernate
> 265 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Returning
> created emf data store, initialize this newly created data store!
> 265 [main] INFO qq.hibernate.TestAirports - after creating dataStore
> 1343 [main] INFO qq.hibernate.TestAirports - after setting package
> 1390 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder
> classname: org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder
> default: true
> 1390 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> classname: org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> default: true
> 1390 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
> classname:
> org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
> default: true
> 1406 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
> classname:
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder
> default: true
> 1406 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper
> classname: org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper
> default: true
> 1406 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.classloader.ClassLoaderStrategy classname:
> org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy default: true
> 1421 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.mapping.strategy.EntityNameStrategy
> classname:
> org.eclipse.emf.teneo.mapping.strategy.impl.EntityResolvingN ameStrategy
> default: true
> 1421 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.mapping.strategy.SQLNameStrategy classname:
> org.eclipse.emf.teneo.mapping.strategy.impl.TeneoSQLNameStra tegy
> default: true
> 1421 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.xml.XmlPersistenceContentH andler
> classname:
> org.eclipse.emf.teneo.annotations.xml.XmlPersistenceContentH andler
> default: true
> 1421 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.xml.XmlElementToEStructura lFeatureMapper
> classname:
> org.eclipse.emf.teneo.annotations.xml.XmlElementToEStructura lFeatureMapper
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.PersistenceOptions classname:
> org.eclipse.emf.teneo.PersistenceOptions default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator
> classname: org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator
> classname: org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.SingleAttributeAnno tator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.SingleAttributeAnno tator
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.BidirectionalManyTo ManyAnnotator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.BidirectionalManyTo ManyAnnotator
> default: true
> 1437 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.UnidirectionalManyT oManyAnnotator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.UnidirectionalManyT oManyAnnotator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator
> classname: org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.HbContext classname:
> org.eclipse.emf.teneo.hibernate.HbContext default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rAccessor
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rAccessor
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDAccessor
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDAccessor
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryFeatureURIPropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryFeatureURIPropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryPropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapE ntryPropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapP ropertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.FeatureMapP ropertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.EMFInterceptor classname:
> org.eclipse.emf.teneo.hibernate.EMFInterceptor default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEMap
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEMap
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableFeatureMap
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableFeatureMap
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HbExtraLazyPer sistableEList
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HbExtraLazyPer sistableEList
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.elist.MapHibernatePe rsistableEMap
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.elist.MapHibernatePe rsistableEMap
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator
> classname:
> org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.MappingContext classname:
> org.eclipse.emf.teneo.hibernate.mapper.MappingContext default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.BasicMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.BasicMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.EmbeddedMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.EmbeddedMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.EntityMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.FeatureMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.FeatureMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.IdMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.IdMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.ManyAttributeMapper
> classname: org.eclipse.emf.teneo.hibernate.mapper.ManyAttributeMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.ManyToManyMapper
> classname: org.eclipse.emf.teneo.hibernate.mapper.ManyToManyMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.MappingContext classname:
> org.eclipse.emf.teneo.hibernate.mapper.MappingContext default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.hibernate.mapper.OneToOneMapper classname:
> org.eclipse.emf.teneo.hibernate.mapper.OneToOneMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener
> classname:
> org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.association.EmbeddedMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.association.EmbeddedMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.association.ManyToManyMapp er
> classname:
> org.eclipse.emf.teneo.jpox.mapper.association.ManyToManyMapp er default:
> true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.association.ManyToOneMappe r
> classname: org.eclipse.emf.teneo.jpox.mapper.association.ManyToOneMappe r
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.association.OneToManyMappe r
> classname: org.eclipse.emf.teneo.jpox.mapper.association.OneToManyMappe r
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.association.OneToOneMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.association.OneToOneMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.BasicMapper classname:
> org.eclipse.emf.teneo.jpox.mapper.property.BasicMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.ColumnMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.property.ColumnMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er
> classname:
> org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er default:
> true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.IdMapper classname:
> org.eclipse.emf.teneo.jpox.mapper.property.IdMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.InheritanceMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.property.InheritanceMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.JoinColumnMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.property.JoinColumnMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.ManyBasicMapper
> classname: org.eclipse.emf.teneo.jpox.mapper.property.ManyBasicMapper
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.property.TableMapper classname:
> org.eclipse.emf.teneo.jpox.mapper.property.TableMapper default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator classname:
> org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.MappingContext classname:
> org.eclipse.emf.teneo.jpox.mapper.MappingContext default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.jpox.mapper.NamingHandler classname:
> org.eclipse.emf.teneo.jpox.mapper.NamingHandler default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
> default: true
> 1452 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbXmlPersistence Mapper
> default: true
> 1468 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator
> classname: org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEFeatureAnnota tor default:
> true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyAttri buteAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnot ator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyRefer enceAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToOneRefere nceAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbManyToOneRefer enceAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.BasicPamodelBuilder
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbAnnotationMode lBuilder
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEAnnotationPar serImporter
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbXmlPersistence Mapper
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator
> classname: org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEFeatureAnnota tor default:
> true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyAttributeA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyAttri buteAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point: org.eclipse.emf.teneo.annotations.mapper.EDataTypeAnnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnot ator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToManyReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToManyRefer enceAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.OneToOneReferenceAn notator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbOneToOneRefere nceAnnotator
> default: true
> 1515 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Registering
> point:
> org.eclipse.emf.teneo.annotations.mapper.ManyToOneReferenceA nnotator
> classname:
> org.eclipse.emf.teneo.hibernate.annotations.HbManyToOneRefer enceAnnotator
> default: true
> 1515 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbSessionDataStore -
> Initializing Hb Session DataStore
> 1515 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbSessionDataStore -
>>>>>> Creating HB Configuration
> 1593 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.2.4.sp1
> 1718 [main] INFO org.hibernate.cfg.Environment - loaded properties
> from resource hibernate.properties: {hibernate.connection.password=****,
> hibernate.c3p0.acquire_increment=2,
> hibernate.jdbc.batch_versioned_data=true,
> hibernate.query.substitutions=yes 'Y', no 'N',
> hibernate.cache.region_prefix=hibernate.test,
> hibernate.c3p0.idle_test_period=3000, hibernate.show_sql=false,
> hibernate.proxool.pool_alias=pool1, hibernate.c3p0.max_statements=100,
> hibernate.bytecode.use_reflection_optimizer=false,
> hibernate.c3p0.validate=false, hibernate.c3p0.timeout=1800,
> hibernate.jdbc.use_streams_for_binary=true, hibernate.max_fetch_depth=1,
> hibernate.c3p0.min_size=5, hibernate.format_sql=true,
> hibernate.connection.username=epiuser,
> hibernate.connection.driver_class=com.mysql.jdbc.Driver,
> hibernate.cache.provider_class=org.hibernate.cache.Hashtable CacheProvider,
> hibernate.c3p0.max_size=20,
> hibernate.connection.provider_class=org.hibernate.connection .C3P0ConnectionProvider,
> hibernate.proxool.existing_pool=true,
> hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect,
> hibernate.connection.url=jdbc:mysql://localhost:3306/epidb}
> 1734 [main] INFO org.hibernate.cfg.Environment - using java.io streams
> to persist binary types
> 1734 [main] INFO org.hibernate.cfg.Environment - Bytecode provider
> name : cglib
> 1749 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4
> java.sql.Timestamp handling
> 1874 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Searching
> extension org.eclipse.emf.teneo.PersistenceOptions
> 1874 [main] INFO
> org.eclipse.emf.teneo.classloader.ClassClassLoaderStrategy - Class
> loader strategy set to:
> org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
> 1874 [main] DEBUG
> org.eclipse.emf.teneo.extension.DefaultExtensionManager - Initargs
> passed, using constructor for class
> org.eclipse.emf.teneo.PersistenceOptions
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions - Properties
> of PersistenceOptions:
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.fetch_containment_eagerly: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.version_column: e_version
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.disable_econtainer: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.default_cache_strategy: NONE
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.sql_name_escape_character: `
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.set_default_cascade_on_non_containment: 1874 [main] DEBUG
> org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.map_all_lists_as_idbag: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.max_sql_name_length: -1
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.default_temporal: TIMESTAMP
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.emap_as_true_map: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.default_varchar_length: -1
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.default_id_column: e_id
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.also_map_as_class: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.add_index_for_fk: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.java_class_entity_names: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.join_table_naming_strategy: unique
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.XSDDateClass: javax.xml.datatype.XMLGregorianCalendar
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.always_version: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.idbag_id_column_name: ID
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.max_comment_length: 0
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.set_entity_automatically: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.hibernate_mapping_file: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.set_foreign_key_name: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.cascade_policy_on_containment: ALL
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.id_feature_as_primary_key: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.set_generated_value_on_id_feature: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.runtime.update_schema: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.strategy: lowercase
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.UserDateTimeType:
> org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.always_map_list_as_bag: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.join_column_naming_strategy: unique
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.set_proxy: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.UserDateType: org.eclipse.emf.teneo.hibernate.mapping.XSDDate
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.cascade_policy_on_non_containment: 1874 [main] DEBUG
> org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.ignore_eannotations: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.naming.default_id_feature: e_id
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.optimistic_locking: true
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.map_embeddable_as_embedded: false
> 1874 [main] DEBUG org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.cascade_all_on_containment: 1874 [main] DEBUG
> org.eclipse.emf.teneo.PersistenceOptions -
> teneo.mapping.join_table_for_non_contained_associations: true
> 1874 [main] DEBUG
>
Re: Teneo not passing hibernate.properties? [message #424999 is a reply to message #424980] Wed, 12 November 2008 18:52 Go to previous messageGo to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Martin,
Yes, the C3P0 jar is on the classpath. I get the same error when that line
is commented out; I also tried commenting out the other C3P0 properties,
and got the same error.
Re: Teneo not passing hibernate.properties? [message #425003 is a reply to message #424999] Wed, 12 November 2008 20:51 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
To be sure about the set of properties used by hibernate, can you create a hibernate.properties file
with just these properties:
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.username=epiuser
hibernate.connection.password=grendelhash
hibernate.connection.url=jdbc:mysql://localhost:3306/epidb
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

Also after creating this properties file, can you check that it is copied to the build/output folder
(during build)? So that hibernate uses this one?

To give some background info. Here is the code Hibernate uses to select the connectionprovider.
Apparently in your case none of the if-statements pass so that it uses the
UserSuppliedConnectionProvider which always throws an exception. So one way or another hibernate
does not see the url, c3p0 or proxool properties...
You can try to set a breakpoint in ConnectionProviderFactory.newConnectionProvider to see what happens.

String providerClass = properties.getProperty(Environment.CONNECTION_PROVIDER);
if ( providerClass!=null ) {
try {
log.info("Initializing connection provider: " + providerClass);
connections = (ConnectionProvider) ReflectHelper.classForName(providerClass).newInstance();
}
catch (Exception e) {
log.fatal("Could not instantiate connection provider", e);
throw new HibernateException("Could not instantiate connection provider: " + providerClass);
}
}
else if ( properties.getProperty(Environment.DATASOURCE)!=null ) {
connections = new DatasourceConnectionProvider();
}
else if ( properties.getProperty(Environment.C3P0_MAX_SIZE)!=null ) {
connections = new C3P0ConnectionProvider();
}
else if (
properties.getProperty(Environment.PROXOOL_XML)!=null ||
properties.getProperty(Environment.PROXOOL_PROPERTIES)!=null ||
properties.getProperty(Environment.PROXOOL_EXISTING_POOL)!=n ull
) {
connections = new ProxoolConnectionProvider();
}
else if ( properties.getProperty(Environment.URL)!=null ) {
connections = new DriverManagerConnectionProvider();
}
else {
connections = new UserSuppliedConnectionProvider();
}


gr. Martin

John G wrote:
> Hi Martin,
> Yes, the C3P0 jar is on the classpath. I get the same error when that
> line is commented out; I also tried commenting out the other C3P0
> properties, and got the same error.


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo not passing hibernate.properties? [message #425133 is a reply to message #425003] Fri, 14 November 2008 21:37 Go to previous messageGo to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Hello all,
Thanks, Martin, for your reply.

I have gone back to basics to eliminate potential problem areas because
obviously I have missed something. So...

I followed the steps in the library tutorial to create the library EMF
package, and tested it. It worked fine. I am using eclipse ganymede,
hibernate 3.2.6GA, and teneo 1.0.0.

I tried to followed the steps in the Teneo tutorial
( http://www.elver.org/hibernate/tutorialone/tutorial1_intro.h tml), but ran
into a confusing problem in the step titled "Create and Store EMF
Objects". Right after the "Hibernate database configuration" section is
the "Initialize the runtime layer" section, but the tutorial doesn't say
where to write this code. This wasn't obvious to me, so I created a new
class called TestLibrary in the project, and placed the rest of the code
in it. Was this the right thing to do? (I'm betting it isn't! ...but I
don't know what else to do for this. Any guidance? This may be where my
fundamental misunderstanding lies...)

Anyway, after placing the rest of the tutorial code into TestLibrary, I
ran the application from inside eclipse, and had errors similar to my
original ones!

Here's my code, hibernate.properties file, and console log.

#Code, copied right from the tutorial:
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.teneo.hibernate.HbDataStore;
import org.eclipse.emf.teneo.hibernate.HbHelper;
import org.eclipse.example.library.Book;
import org.eclipse.example.library.BookCategory;
import org.eclipse.example.library.Library;
import org.eclipse.example.library.LibraryFactory;
import org.eclipse.example.library.LibraryPackage;
import org.eclipse.example.library.Writer;
import org.hibernate.Session;
import org.hibernate.SessionFactory;

public class TestLibrary {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// Create the DataStore.
final String dataStoreName = "LibraryDataStore";
final HbDataStore dataStore = HbHelper.INSTANCE
.createRegisterDataStore(dataStoreName);

// Configure the EPackages used by this DataStore.
dataStore.setEPackages(new EPackage[] { LibraryPackage.eINSTANCE
});

// Initialize the DataStore. This sets up the Hibernate mapping and
// creates the corresponding tables in the database.
dataStore.initialize();

final SessionFactory sessionFactory =
dataStore.getSessionFactory();

// Open a new Session and start Transaction.
Session session = sessionFactory.openSession();
session.beginTransaction();

// Create a Library.
Library library = LibraryFactory.eINSTANCE.createLibrary();
library.setName("My Library");
// Make it persistent.
session.save(library);

// Create a writer...
Writer writer = LibraryFactory.eINSTANCE.createWriter();
writer.setName("JRR Tolkien");

// ...and one of his books.
Book book = LibraryFactory.eINSTANCE.createBook();
book.setAuthor(writer);
book.setPages(305);
book.setTitle("The Hobbit");
book.setCategory(BookCategory.SCIENCE_FICTION);

// Add the Writer and Book to the Library. They are made
// persistent automatically because the Library is itself
// already persistent.
library.getWriters().add(writer);
library.getBooks().add(book);

session.getTransaction().commit();
session.close();
}

}
# hibernate.properties
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.username=fred
hibernate.connection.password=flintstone
hibernate.connection.url=jdbc:mysql://localhost:3306/library
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

# console output
Nov 14, 2008 1:06:08 PM org.eclipse.emf.teneo.hibernate.HbHelper
createRegisterDataStore
INFO: Creating emf data store and registering it under name:
LibraryDataStore
Nov 14, 2008 1:06:09 PM org.eclipse.emf.teneo.hibernate.HbHelper
createRegisterDataStore
INFO: Returning created emf data store, initialize this newly created data
store!
Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.6
Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties:
{hibernate.connection.username=fred, hibernate.connection.password=****,
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect,
hibernate.connection.url=jdbc:mysql://localhost:3306/library,
hibernate.bytecode.use_reflection_optimizer=false,
hibernate.connection.driver_class=com.mysql.jdbc.Driver}
Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Nov 14, 2008 1:06:09 PM
org.eclipse.emf.teneo.classloader.ClassLoaderResolver
setClassLoaderStrategy
INFO: Class loader strategy set to:
org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
Nov 14, 2008 1:06:09 PM
org.eclipse.emf.teneo.extension.DefaultExtensionManager getExtension
WARNING: The extension: org.eclipse.emf.teneo.PersistenceOptions is
declared as a singleton but this getInstance call passed initialization
parameters so it is not cached, org.eclipse.emf.teneo.PersistenceOptions
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
bindRootPersistentClassCommonValues
INFO: Mapping class: Book -> book
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
bindRootPersistentClassCommonValues
INFO: Mapping class: Library -> library
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
bindRootPersistentClassCommonValues
INFO: Mapping class: Writer -> writer
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder bindCollection
INFO: Mapping collection: Writer.books -> writer_books
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
setDefaultProperties
WARNING: No hibernate cache provider set, using
org.hibernate.cache.HashtableCacheProvider
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
setDefaultProperties
WARNING: For production use please set the ehcache (or other) provider
explicitly and configure it
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
setDefaultProperties
INFO: Hibernate property: hibernate.hbm2ddl.auto not set, setting to update
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.fetch_containment_eagerly: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: hibernate.cache.provider_class:
org.hibernate.cache.HashtableCacheProvider
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.version_column: e_version
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.disable_econtainer: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.default_cache_strategy: NONE
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.sql_name_escape_character: `
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.set_default_cascade_on_non_containment:
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.map_all_lists_as_idbag: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.max_sql_name_length: -1
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.default_temporal: TIMESTAMP
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.emap_as_true_map: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.default_varchar_length: -1
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.default_id_column: e_id
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.also_map_as_class: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.add_index_for_fk: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.java_class_entity_names: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.join_table_naming_strategy: unique
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.XSDDateClass: javax.xml.datatype.XMLGregorianCalendar
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.always_version: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.idbag_id_column_name: ID
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.max_comment_length: 0
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.set_entity_automatically: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.hibernate_mapping_file: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.set_foreign_key_name: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.cascade_policy_on_containment: ALL
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.id_feature_as_primary_key: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.set_generated_value_on_id_feature: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.runtime.update_schema: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.strategy: lowercase
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.UserDateTimeType:
org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.always_map_list_as_bag: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.join_column_naming_strategy: unique
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.set_proxy: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.UserDateType:
org.eclipse.emf.teneo.hibernate.mapping.XSDDate
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.cascade_policy_on_non_containment:
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.ignore_eannotations: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: hibernate.hbm2ddl.auto: update
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.naming.default_id_feature: e_id
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.map_embeddable_as_embedded: false
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.optimistic_locking: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.join_table_for_non_contained_associations: true
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
logProperties
INFO: teneo.mapping.cascade_all_on_containment:
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
bindCollectionSecondPass
INFO: Mapping collection: Library.writers -> writer
Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
bindCollectionSecondPass
INFO: Mapping collection: Library.books -> book
Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
initializeDataStore
WARNING: The teneo update schema option is not used anymore for hibernate,
use the hibernate option: hibernate.hbm2ddl.auto
Nov 14, 2008 1:06:10 PM
org.hibernate.connection.UserSuppliedConnectionProvider configure
WARNING: No connection properties specified - the user must supply JDBC
connections
Exception in thread "main" org.hibernate.HibernateException: Hibernate
Dialect must be explicitly set
at
org.hibernate.dialect.DialectFactory.determineDialect(Dialec tFactory.java:57)
at
org.hibernate.dialect.DialectFactory.buildDialect(DialectFac tory.java:39)
at
org.hibernate.cfg.SettingsFactory.determineDialect(SettingsF actory.java:426)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFact ory.java:128)
at org.hibernate.cfg.Configuration.buildSettings(Configuration. java:2073)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1298)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
at TestLibrary.main(TestLibrary.java:30)
Re: Teneo not passing hibernate.properties? [message #425135 is a reply to message #425133] Fri, 14 November 2008 22:20 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
I see that you mention teneo 1.0.0, there was an issue in teneo 1.0.0 with hibernate.properties. Can
you use the latest M build of Teneo? Here is the link:
http://www.eclipse.org/modeling/download.php?file=/modeling/ emf/teneo/downloads/drops/1.0.1/R200809231814/emf-teneo-SDK- 1.0.1.zip

Btw, your code is fine in one class (:-) so your bet was fine). For 'real' code, I put the
initialization code in one class which provides hibernate sessions to the rest of the application.

gr. Martin

John G wrote:
> Hello all,
> Thanks, Martin, for your reply.
> I have gone back to basics to eliminate potential problem areas because
> obviously I have missed something. So...
>
> I followed the steps in the library tutorial to create the library EMF
> package, and tested it. It worked fine. I am using eclipse ganymede,
> hibernate 3.2.6GA, and teneo 1.0.0.
> I tried to followed the steps in the Teneo tutorial
> ( http://www.elver.org/hibernate/tutorialone/tutorial1_intro.h tml), but
> ran into a confusing problem in the step titled "Create and Store EMF
> Objects". Right after the "Hibernate database configuration" section is
> the "Initialize the runtime layer" section, but the tutorial doesn't say
> where to write this code. This wasn't obvious to me, so I created a new
> class called TestLibrary in the project, and placed the rest of the code
> in it. Was this the right thing to do? (I'm betting it isn't! ...but I
> don't know what else to do for this. Any guidance? This may be where my
> fundamental misunderstanding lies...)
>
> Anyway, after placing the rest of the tutorial code into TestLibrary, I
> ran the application from inside eclipse, and had errors similar to my
> original ones!
> Here's my code, hibernate.properties file, and console log.
> #Code, copied right from the tutorial:
> import org.eclipse.emf.ecore.EPackage;
> import org.eclipse.emf.teneo.hibernate.HbDataStore;
> import org.eclipse.emf.teneo.hibernate.HbHelper;
> import org.eclipse.example.library.Book;
> import org.eclipse.example.library.BookCategory;
> import org.eclipse.example.library.Library;
> import org.eclipse.example.library.LibraryFactory;
> import org.eclipse.example.library.LibraryPackage;
> import org.eclipse.example.library.Writer;
> import org.hibernate.Session;
> import org.hibernate.SessionFactory;
>
> public class TestLibrary {
>
> /**
> * @param args
> */
> public static void main(String[] args) {
> // TODO Auto-generated method stub
> // Create the DataStore.
> final String dataStoreName = "LibraryDataStore";
> final HbDataStore dataStore = HbHelper.INSTANCE
> .createRegisterDataStore(dataStoreName);
>
> // Configure the EPackages used by this DataStore.
> dataStore.setEPackages(new EPackage[] { LibraryPackage.eINSTANCE });
>
> // Initialize the DataStore. This sets up the Hibernate mapping and
> // creates the corresponding tables in the database.
> dataStore.initialize();
>
> final SessionFactory sessionFactory = dataStore.getSessionFactory();
>
> // Open a new Session and start Transaction.
> Session session = sessionFactory.openSession();
> session.beginTransaction();
>
> // Create a Library.
> Library library = LibraryFactory.eINSTANCE.createLibrary();
> library.setName("My Library");
> // Make it persistent.
> session.save(library);
>
> // Create a writer...
> Writer writer = LibraryFactory.eINSTANCE.createWriter();
> writer.setName("JRR Tolkien");
>
> // ...and one of his books.
> Book book = LibraryFactory.eINSTANCE.createBook();
> book.setAuthor(writer);
> book.setPages(305);
> book.setTitle("The Hobbit");
> book.setCategory(BookCategory.SCIENCE_FICTION);
>
> // Add the Writer and Book to the Library. They are made
> // persistent automatically because the Library is itself
> // already persistent.
> library.getWriters().add(writer);
> library.getBooks().add(book);
>
> session.getTransaction().commit();
> session.close();
> }
>
> }
> # hibernate.properties
> hibernate.connection.driver_class=com.mysql.jdbc.Driver
> hibernate.connection.username=fred
> hibernate.connection.password=flintstone
> hibernate.connection.url=jdbc:mysql://localhost:3306/library
> hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
>
> # console output
> Nov 14, 2008 1:06:08 PM org.eclipse.emf.teneo.hibernate.HbHelper
> createRegisterDataStore
> INFO: Creating emf data store and registering it under name:
> LibraryDataStore
> Nov 14, 2008 1:06:09 PM org.eclipse.emf.teneo.hibernate.HbHelper
> createRegisterDataStore
> INFO: Returning created emf data store, initialize this newly created
> data store!
> Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
> INFO: Hibernate 3.2.6
> Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
> INFO: loaded properties from resource hibernate.properties:
> {hibernate.connection.username=fred, hibernate.connection.password=****,
> hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect,
> hibernate.connection.url=jdbc:mysql://localhost:3306/library,
> hibernate.bytecode.use_reflection_optimizer=false,
> hibernate.connection.driver_class=com.mysql.jdbc.Driver}
> Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment buildBytecodeProvider
> INFO: Bytecode provider name : cglib
> Nov 14, 2008 1:06:09 PM org.hibernate.cfg.Environment <clinit>
> INFO: using JDK 1.4 java.sql.Timestamp handling
> Nov 14, 2008 1:06:09 PM
> org.eclipse.emf.teneo.classloader.ClassLoaderResolver
> setClassLoaderStrategy
> INFO: Class loader strategy set to:
> org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
> Nov 14, 2008 1:06:09 PM
> org.eclipse.emf.teneo.extension.DefaultExtensionManager getExtension
> WARNING: The extension: org.eclipse.emf.teneo.PersistenceOptions is
> declared as a singleton but this getInstance call passed initialization
> parameters so it is not cached, org.eclipse.emf.teneo.PersistenceOptions
> Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: Book -> book
> Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: Library -> library
> Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: Writer -> writer
> Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder bindCollection
> INFO: Mapping collection: Writer.books -> writer_books
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> setDefaultProperties
> WARNING: No hibernate cache provider set, using
> org.hibernate.cache.HashtableCacheProvider
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> setDefaultProperties
> WARNING: For production use please set the ehcache (or other) provider
> explicitly and configure it
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> setDefaultProperties
> INFO: Hibernate property: hibernate.hbm2ddl.auto not set, setting to update
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.fetch_containment_eagerly: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: hibernate.cache.provider_class:
> org.hibernate.cache.HashtableCacheProvider
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.version_column: e_version
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.disable_econtainer: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.default_cache_strategy: NONE
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.sql_name_escape_character: `
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.set_default_cascade_on_non_containment: Nov 14, 2008
> 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
> INFO: teneo.mapping.map_all_lists_as_idbag: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.max_sql_name_length: -1
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.default_temporal: TIMESTAMP
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.emap_as_true_map: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.default_varchar_length: -1
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.default_id_column: e_id
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.also_map_as_class: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.add_index_for_fk: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.java_class_entity_names: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.join_table_naming_strategy: unique
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.XSDDateClass: javax.xml.datatype.XMLGregorianCalendar
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.always_version: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.idbag_id_column_name: ID
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.max_comment_length: 0
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.set_entity_automatically: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.hibernate_mapping_file: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.set_foreign_key_name: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.cascade_policy_on_containment: ALL
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.id_feature_as_primary_key: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.set_generated_value_on_id_feature: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.runtime.update_schema: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.strategy: lowercase
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.UserDateTimeType:
> org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.always_map_list_as_bag: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.join_column_naming_strategy: unique
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.set_proxy: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.UserDateType:
> org.eclipse.emf.teneo.hibernate.mapping.XSDDate
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.cascade_policy_on_non_containment: Nov 14, 2008
> 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
> INFO: teneo.mapping.ignore_eannotations: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: hibernate.hbm2ddl.auto: update
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.naming.default_id_feature: e_id
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.map_embeddable_as_embedded: false
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.optimistic_locking: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.join_table_for_non_contained_associations: true
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> logProperties
> INFO: teneo.mapping.cascade_all_on_containment: Nov 14, 2008 1:06:10 PM
> org.hibernate.cfg.HbmBinder bindCollectionSecondPass
> INFO: Mapping collection: Library.writers -> writer
> Nov 14, 2008 1:06:10 PM org.hibernate.cfg.HbmBinder
> bindCollectionSecondPass
> INFO: Mapping collection: Library.books -> book
> Nov 14, 2008 1:06:10 PM org.eclipse.emf.teneo.hibernate.HbDataStore
> initializeDataStore
> WARNING: The teneo update schema option is not used anymore for
> hibernate, use the hibernate option: hibernate.hbm2ddl.auto
> Nov 14, 2008 1:06:10 PM
> org.hibernate.connection.UserSuppliedConnectionProvider configure
> WARNING: No connection properties specified - the user must supply JDBC
> connections
> Exception in thread "main" org.hibernate.HibernateException: Hibernate
> Dialect must be explicitly set
> at
> org.hibernate.dialect.DialectFactory.determineDialect(Dialec tFactory.java:57)
>
> at
> org.hibernate.dialect.DialectFactory.buildDialect(DialectFac tory.java:39)
> at
> org.hibernate.cfg.SettingsFactory.determineDialect(SettingsF actory.java:426)
>
> at
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFact ory.java:128)
> at
> org.hibernate.cfg.Configuration.buildSettings(Configuration. java:2073)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1298)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
>
> at TestLibrary.main(TestLibrary.java:30)
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo not passing hibernate.properties? [message #425157 is a reply to message #425135] Mon, 17 November 2008 19:33 Go to previous messageGo to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Martin Taal wrote:

> Hi John,
> I see that you mention teneo 1.0.0, there was an issue in teneo 1.0.0 with
hibernate.properties. Can
> you use the latest M build of Teneo? Here is the link:
>
http://www.eclipse.org/modeling/download.php?file=/modeling/ emf/teneo/downloads/drops/1.0.1/R200809231814/emf-teneo-SDK- 1.0.1.zip

Hi Martin,
Again, thanks for helping me.
Bottom line (see below for details), the new plugins don't show up in the
plugin details list, nor are they available to add in the dependencies
dialog. Nothing unusual in the .log, either. What did I do wrong? I
thought installing a plugin was simply drop-and-restart...hate to be
sidetracked by such a simple problem. Doesn't seem to be any relevant info
on Google, either.

This is driving me nuts! Thanks for any sanity provided...


If you want the details, here's what I did. Please point out my errors! :
I downloaded the maintenance release zip file from the link you provided,
un-zipped (using 7-Zip) it into a temp folder, then copied the contents of
the unzipped features folder and plugin folder to my eclipse features and
plugins folders, respectively.
After starting eclipse, I opened help--> plugin details, and none of the
1.0.1 teneo plugins were listed (the 1.0.0 plugins were still there). I
also couldn't add them to my plugin dependencies (they weren't listed in
the dialog list).
Assuming I did something wrong by placing the 1.0.1 items next to the
1.0.0 items in their respective folders, I removed the original 1.0.0
folders and files from both features and plugins folders (leaving the
1.0.1 files & folders), re-started eclipse; this time, **no** teneo
plugins were found.
So, thinking it might be my eclipse installation, I unzipped a clean
eclipse ganymede, started it up, checked that teneo 1.0.0 was OK, shut it
down, unzipped the maintenance build and copied files as before, restarted
eclipse, and same problem: no teneo 1.0.1 plugins listed anywhere, even
though both 1.0.0 and 1.0.1 files were in place in features and plugins
folders.
So, removed the 1.0.1 files from features and plugins, restarted eclipse,
checked that teneo 1.0.0 was OK, then downloaded and tried the same steps
with the teneo emf-teneo-SDK-M200811151637.zip build, with the same
results.
Re: Teneo not passing hibernate.properties? [message #425159 is a reply to message #425157] Mon, 17 November 2008 19:51 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
From eclipse 3.4 onwards it is not possible to copy plugins/features directly into the eclipse
installation directory.

Assuming that you are using eclipse 3.4 you should install plugins as follows:
- unzip the downloaded zip file
- copy the eclipse directory (which is the result of the unzip) into the dropins folder of your
eclipse installation
- restart eclipse

and then hopefully they will show up...

gr. Martin

John G wrote:
> Martin Taal wrote:
>
>> Hi John,
>> I see that you mention teneo 1.0.0, there was an issue in teneo 1.0.0
>> with
> hibernate.properties. Can
>> you use the latest M build of Teneo? Here is the link:
>>
> http://www.eclipse.org/modeling/download.php?file=/modeling/ emf/teneo/downloads/drops/1.0.1/R200809231814/emf-teneo-SDK- 1.0.1.zip
>
>
> Hi Martin, Again, thanks for helping me. Bottom line (see below for
> details), the new plugins don't show up in the plugin details list, nor
> are they available to add in the dependencies dialog. Nothing unusual in
> the .log, either. What did I do wrong? I thought installing a plugin was
> simply drop-and-restart...hate to be sidetracked by such a simple
> problem. Doesn't seem to be any relevant info on Google, either.
> This is driving me nuts! Thanks for any sanity provided...
>
>
> If you want the details, here's what I did. Please point out my errors! :
> I downloaded the maintenance release zip file from the link you
> provided, un-zipped (using 7-Zip) it into a temp folder, then copied the
> contents of the unzipped features folder and plugin folder to my eclipse
> features and plugins folders, respectively. After starting eclipse, I
> opened help--> plugin details, and none of the 1.0.1 teneo plugins were
> listed (the 1.0.0 plugins were still there). I also couldn't add them to
> my plugin dependencies (they weren't listed in the dialog list).
> Assuming I did something wrong by placing the 1.0.1 items next to the
> 1.0.0 items in their respective folders, I removed the original 1.0.0
> folders and files from both features and plugins folders (leaving the
> 1.0.1 files & folders), re-started eclipse; this time, **no** teneo
> plugins were found. So, thinking it might be my eclipse installation, I
> unzipped a clean eclipse ganymede, started it up, checked that teneo
> 1.0.0 was OK, shut it down, unzipped the maintenance build and copied
> files as before, restarted eclipse, and same problem: no teneo 1.0.1
> plugins listed anywhere, even though both 1.0.0 and 1.0.1 files were in
> place in features and plugins folders.
> So, removed the 1.0.1 files from features and plugins, restarted
> eclipse, checked that teneo 1.0.0 was OK, then downloaded and tried the
> same steps with the teneo emf-teneo-SDK-M200811151637.zip build, with
> the same results.


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Teneo not passing hibernate.properties? [message #425164 is a reply to message #425159] Mon, 17 November 2008 22:07 Go to previous messageGo to next message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Hello Martin,
Thanks for that bit about dropins... after removing my previous
installations, and reading up on P2, I finally updated to Teneo 1.0.1 via
software updates, and now the Library example works just fine! I now have
to apply the same fix to my original problem, and I will let you know how
it works out. Thanks again for your time...I'm quite a few steps closer to
getting things to work!
Re: Teneo not passing hibernate.properties? [message #425249 is a reply to message #425164] Thu, 20 November 2008 20:34 Go to previous message
John G is currently offline John GFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Martin,
The Teneo update eliminated my original problem, and I am back to work!
Thanks again for all your help.

To recap (and for those finding this by search engine), I originally had a
problem where Teneo 1.0.0 wouldn't get correct hibernate.properties values
even though they were read earlier. The error was:

org.hibernate.connection.UserSuppliedConnectionProvider - No connection
properties specified - the user must supply JDBC connections

Updating to Teneo 1.0.1 (via eclipse software updates) fixed the problem.

Sincerely,

John
Previous Topic:[Teneo] How to disable automatic updating of DB schema when application starts
Next Topic:Rose Importer Patch and Question
Goto Forum:
  


Current Time: Sun Feb 23 17:12:52 GMT 2020

Powered by FUDForum. Page generated in 0.02703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top