Hello,
razwed4ik wrote:
>
> Hi guys,
>
> im running the Spring2 Cartridge and there are no problems with generation
> of java classes. But how i can generate my own hibernate.properties. I
> tried to put my hibernate.properties file in src/main/resources folder and
> hibernate cartridge reading it succesfully :
>
> 5987 INFO Environment - Hibernate 3.2.4
> 5991 INFO Environment - loaded properties from resource
> hibernate.properties:
> {hibernate.cacheProvider_class='org.hibernate.cache.NoCacheProvider',
> hibernate.access='property',
> hibernate.connection.driver_class='com.mysql.jdbc.Driver',
> hibernate.hbm2ddlAuto='create',
> hibernate.current_session_context_class='thread',
> hibernate.dialect='org.hibernate.dialect.HSQLDialect',
> hibernate.modelslot=model, hibernate.connection.user='root',
> cartridgemode='mappings', hibernate.connectionPool_size='1',
> hibernate.connection.url='jdbc:mysql://localhost/database?createDatabaseIfNotExist=true',
> hibernate.generatorClass='increment', hibernate.show_sql='true',
> hibernate.bytecode.use_reflection_optimizer=false,
> hibernate.connection.password=****}
>
> but in generated I get hibernate.properties/.xml with standart input:
>
> hibernate.connection.driver_class = org.hsqldb.jdbcDriver
> hibernate.connection.url=jdbc:hsqldb:mem:test
> hibernate.connection.user=sa
> hibernate.connection.password=
> hibernate.connection.pool_size=1
> hibernate.current_session_context_class=thread
> hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
> hibernate.dialect = org.hibernate.dialect.HSQLDialect
> hibernate.show_sql=true
> hibernate.hbm2ddl.auto=create
>
>
> datasource.maxActive=100
> datasource.maxIdle=30
> datasource.maxWait=1000
> datasource.defaultAutoCommit=true
> datasource.removeAbandoned=true
> datasource.removeAbandonedTimeout=60
>
>
> Should it not be my hibenate.properties in generated folder?
>
>
> Thx i. A.
>
>
You can customize the Hibernate Properties by overwrite the default
properties defined in the hibernateCartridgeDefaults.properties (It is part
of the Fornax Hibernate Cartridge jar).
Just put the properties you want to overwrite inside the workflow.properties
Regards
Darius Jockel
--
View this message in context:
http://www.nabble.com/hibernate.properties-in-Spring2-Cartridge-tf4562684s17564.html#a13033273
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer