Hi all,
I would like to know whether it is feasible to specify the DatePrecision of the DBDictionary inside a spring defintion. I don't know whether it's a Spring or OpenJpa question, so I post it here. That property is a property of of DBDictionary, which is already defined.
The definition of the EntityManagerFactory is as follows:
Cheers,Code:<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="sandbox" /> <property name="dataSource" ref="dataSource" /> <property name="jpaDialect"> <bean class="org.springframework.orm.jpa.vendor.OpenJpaDialect" /> </property> <property name="jpaPropertyMap"> <props> <prop key="openjpa.Log">SQL=ERROR,Runtime=ERROR</prop> <prop key="openjpa.jdbc.SynchronizeMappings">buildSchema</prop> <prop key="openjpa.jdbc.DBDictionary">org.apache.openjpa.jdbc.sql.MySQLDictionary</prop> </props> </property> </bean>
Stephan


Reply With Quote