Gemini Jpa: Howto specify a jpa vendor adapter? [message #1052844] |
Tue, 30 April 2013 12:53  |
Eclipse User |
|
|
|
I would like to migrate to gemini jpa for one of our applications.
I'm tracking the EntityManagerFactoryBuilder Service and call createEntityManager with some properties:
- javax.persistence.jdbc.url
- javax.persistence.jdbc.driver
- javax.persistence.jdbc.user
- javax.persistence.jdbc.password
This is working well.
When I was creating the EMF myself (before gemini jpa) I was specifying a jpaVendorAdapter like that:
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter" ref="eclipseLinkJpaVendorAdapter" />
<property name="jpaPropertyMap">
<map>
<entry key="eclipselink.weaving" value="true" />
<entry key="eclipselink.ddl-generation" value="${eclipselink.ddl-generation}" />
</map>
</property>
<property name="loadTimeWeaver">
<ref bean="domain-weaver" />
</property>
</bean>
Is it possible to specify a jpaVendorAdapter as a property to EMFBuilder.createEntityManager? Do I need one?
Thanks,
Peter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05082 seconds