%BROADCASTMESSAGE%
CAAD | ARCH TWiki > Catch0405 > KaisersrotPersistenz > SoftwareVersions > ConfigFile (r1.1) TWiki webs:
Admin| Aizo | Archinf | BIP | Bgyalex | Brandhub | Catch0405 | Cityscan05 | CommunityMedia | Control | Curtain | Easa005 | Easydb | Education | Extern | Extern0405 | Freudenhaus | Fund | Game0405 | Game05 | Gamearch | Luise | MAS0506 | MAS0506stu | Mas0506 | Mas0506stu | Maschinen0405 | Menz | Mill | Mill0405 | NDS | NDS0405 | NDS0405stu | Plugins | Qwipp | RZM | Replay | Replay0405 | Research | Second | Trash | Udintern | Urbandesign |
Catch0405 . { Changes | Index | Search | Go }
###################### ### Query Language ### ######################

## define query language constants / function names

hibernate.query.substitutions true 1, false 0, yes 'Y', no 'N'

## package imports

hibernate.query.imports cirrus.hibernate.test

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

## JNDI Datasource

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

## PostgreSQL?

#hibernate.dialect cirrus.hibernate.sql.PostgreSQLDialect #hibernate.connection.driver_class org.postgresql.Driver #hibernate.connection.url jdbc:postgresql:template1 #hibernate.connection.username pg #hibernate.connection.password #hibernate.query.substitutions yes 'Y', no 'N'

## DB2

#hibernate.dialect cirrus.hibernate.sql.DB2Dialect #hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver #hibernate.connection.url jdbc:db2:test #hibernate.connection.username db2 #hibernate.connection.password db2

## MySQL?

hibernate.dialect cirrus.hibernate.sql.MySQLDialect hibernate.connection.driver_class org.gjt.mm.mysql.Driver hibernate.connection.driver_class com.mysql.jdbc.Driver hibernate.connection.url jdbc:mysql:///test hibernate.connection.username root hibernate.connection.password root

## Oracle

#hibernate.dialect cirrus.hibernate.sql.OracleDialect #hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver #hibernate.connection.username ora #hibernate.connection.password ora #hibernate.connection.url jdbc:oracle:thin:@localhost:1521:test

## Sybase

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

## HypersonicSQL?

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

## Mckoi SQL

#hibernate.dialect cirrus.hibernate.sql.MckoiDialect #hibernate.connection.driver_class com.mckoi.JDBCDriver #hibernate.connection.url jdbc:mckoi:/// #hibernate.connection.url jdbc:mckoi:local://C:/mckoi0.94h/db.conf #hibernate.connection.username admin #hibernate.connection.password nimda

## SAP DB

#hibernate.dialect cirrus.hibernate.sql.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 cirrus.hibernate.sql.SybaseDialect #hibernate.connection.username sa #hibernate.connection.password

## JSQL Driver

#hibernate.connection.driver_class com.jnetdirect.jsql.JSQLDriver #hibernate.connection.url jdbc:JSQLConnect://CO3061835-A:1433

## JTURBO Driver

#hibernate.connection.driver_class com.newatlanta.jturbo.driver.Driver #hibernate.connection.url jdbc:JTurbo://CO3061835-A:1433/master

## WebLogic? Driver

#hibernate.connection.driver_class weblogic.jdbc.mssqlserver4.Driver #hibernate.connection.url jdbc:weblogic:mssqlserver4:CO3061835-A:1433

## Microsoft Driver (not supported!)

#hibernate.connection.driver_class com.microsoft.jdbc.sqlserver.SQLServerDriver #hibernate.connection.url jdbc:microsoft:sqlserver://CO3061835-A:1433;SelectMethod=cursor

## Interbase

#hibernate.dialect cirrus.hibernate.sql.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 cirrus.hibernate.sql.PointbaseDialect #hibernate.connection.driver_class com.pointbase.jdbc.jdbcUniversalDriver #hibernate.connection.url jdbc:pointbase:embedded:sample #hibernate.connection.username PBPUBLIC #hibernate.connection.password PBPUBLIC

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

hibernate.connection.pool_size 2 hibernate.statement_cache.size 100

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

#hibernate.c3p0.max_size 2 #hibernate.c3p0.min_size 2 #hibernate.c3p0.timeout 5000 #hibernate.c3p0.max_statements 100 #hibernate.c3p0.validate false

################################### ### Apache DBCP Connection Pool ### ###################################

# connection pool

#hibernate.dbcp.maxActive 100 #hibernate.dbcp.whenExhaustedAction 1 #hibernate.dbcp.maxWait 120000 #hibernate.dbcp.maxIdle 10

## prepared statement cache

#hibernate.dbcp.ps.maxActive 100 #hibernate.dbcp.ps.whenExhaustedAction 1 #hibernate.dbcp.ps.maxWait 120000 #hibernate.dbcp.ps.maxIdle 100

# optional query to validate pooled connections:

#hibernate.dbcp.validationQuery select 1 from dual

################################# ### Plugin ConnectionProvider? ### #################################

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

#hibernate.connection.provider_class cirrus.hibernate.connection.DriverManagerConnectionProvider #hibernate.connection.provider_class cirrus.hibernate.connection.DatasourceConnectionProvider #hibernate.connection.provider_class cirrus.hibernate.connection.C3P0ConnectionProvider #hibernate.connection.provider_class cirrus.hibernate.connection.DBCPConnectionProvider

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

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

#hibernate.transaction.factory_class cirrus.hibernate.transaction.JTATransactionFactory #hibernate.transaction.factory_class cirrus.hibernate.transaction.JDBCTransactionFactory

## to use JTATransactionFactory?, Hibernate must be able to locate the UserTransaction? in JNDI ## default is java:comp/UserTransaction

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

## to use JTATransactionFactory? with JCS caching, Hibernate must be able to obtain the JTA TransactionManager?

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

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

## specify a JDBC isolation level

#hibernate.connection.isolation 4

## print all generated SQL to the console

#hibernate.show_sql 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 0

## 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

## specify a default schema for unqualified tablenames

#hibernate.default_schema test

## use a custom stylesheet for XML generation (if not specified, hibernate-default.xslt will be used)

#hibernate.xml.output_stylesheet C:/Hibernate/cirrus/hibernate/hibernate-default.xslt

## enable outerjoin fetching (specifying a Dialect will cause Hibernate to use sensible default)

#hibernate.use_outer_join false

############ ### 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:/

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

-- OtherDenisRaschpichler - 06 Dec 2004


Topic ConfigFile . { Edit | Attach | Ref-By | Printable | Diffs | r1.2 | > | r1.1 | More }
Revision r1.1 - 06 Dec 2004 - 08:24 - OtherDenisRaschpichler
Parents: WebHome > KaisersrotPersistenz > SoftwareVersions

Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

This website has been archived and is no longer maintained.