Results 1 to 2 of 2

Thread: JDBC namespace, extra configuration features

  1. #1

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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 at 07:15 AM.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •