<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
	    <property name="driverClassName">
	        <value>org.hsqldb.jdbcDriver</value>
	    </property>
	    <property name="url">
	        <value>jdbc:hsqldb:mem:grailsDB</value>
	    </property>
	    <property name="username">
	        <value>sa</value>
	    </property>
	    <property name="password">
	        <value></value>
	    </property>					
	</bean>
	
	
	<bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
		<description>Grails application factory bean</description>
		<property name="groovyFiles">
			<value>org/codehaus/groovy/grails/orm/hibernate/PersistentMethodTestClass.groovy</value>
		</property>
	</bean>
	
	
	
	<bean id="sessionFactory" class="org.codehaus.groovy.grails.orm.hibernate.ConfigurableLocalSessionFactoryBean">
		<property name="grailsApplication">
			<ref bean="grailsApplication" />
		</property>
		<property name="configurationClass">
			<value>org.codehaus.groovy.grails.orm.hibernate.cfg.DefaultGrailsDomainConfiguration</value>
		</property> 
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
				<prop key="hibernate.hbm2ddl.auto">create-drop</prop>				
			</props>
		</property>
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>		
	</bean>		
</beans>