JPA 1.0 Spring Context for an Embedded Derby DB

less than 1 minute read




<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/beans/spring-util-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">









create
org.hibernate.dialect.DerbyDialect
true 'T', false 'F'
true
5
20
600
50
false


















































com.xx.xx.common.index.entity.CellEntity






com.xx.xx.common.index.entity.APNEntity












<bean id="CELL" class="com.xx.xx.common.index.IndexType"
factory-method="valueOf">

CELL
</bean>



<bean id="APN" class="com.xx.xx.common.index.IndexType"
factory-method="valueOf">

APN
</bean>



<bean id="genericEntityFactory"
class="com.xx.xx.common.index.GenericEntityFactoryImpl">





























</bean>



</beans>


the associated persistence.xml

<pre class="brush: xml">


</pre>

Categories:

Updated:

Leave a Comment