Announcement Announcement Module
Collapse
No announcement yet.
JDBC namespace, extra configuration features Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JDBC namespace, extra configuration features

    Hey folks,

    I'm using jdbc:embedded-database (type = HSQL) but would like to configure it with extra parameters, e.g.

    Code:
    hibernate.connection.hsqldb.default_table_type=cached
    Here's an excerpt from my configuration:

    Code:
    	<bean id="jobRepository" class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean">
    		<description>
    			PS jdbc:embedded-database tag spawns an HSQL db by default.
    			Supported databaseType otherwise can be found here:
    			http://static.springsource.org/spring-batch/apidocs/org/springframework/batch/support/DatabaseType.html
    		</description>
            <property name="dataSource" ref="dataSourceBatch"/>
            <property name="databaseType" value="HSQL"/>
            <property name="transactionManager" ref="transactionManager"/>
        </bean>
        
        <jdbc:embedded-database id="dataSourceBatch" type="HSQL">
        	<jdbc:script location="classpath:batch-jobrepository.sql"></jdbc:script>
        </jdbc:embedded-database>
    Please let me know how to get this property into the HSQL configuration.

    Thanks,
    Juan

  • #2
    Ehrm why do you want to change a hibernate property by adding it to a jdbc configuration?!`

    But to answer your question, with the jdbc embedded tag it isn't possible to add properties. You would have to a datasource yourself and configure it completly.
    Last edited by Marten Deinum; May 4th, 2010, 08:15 AM.

    Comment

    Working...
    X