Announcement Announcement Module
Collapse
No announcement yet.
HibernateJpaVendorAdapter properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HibernateJpaVendorAdapter properties

    Hello

    1) What is the difference between the 'database' and 'databasePlatform' properties?

    2) I am trying to use Oracle 10g with:

    <property name="database" value="ORACLE" />

    and keep getting the warning:

    The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead

    What should the 'database' property be set to?

    3) I found the following properties on the internet:

    <bean id="entityManagerFactory"
    class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="jpaVendorAdapter">
    <bean
    class="org.springframework.orm.jpa.vendor.Hibernat eJpaVendorAdapter">
    <property name="showSql" value="true" />
    <property name="generateDdl" value="true" />
    </bean>
    </property>
    <property name="jpaProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.Orac le10gDialect</prop>
    <prop key="hibernate.hbm2ddl.auto ">create-drop</prop>
    </props>
    </property>
    </bean>


    Is this the correct way of setting the properties?

    4) Is any 'weaving' required when using the HibernateJpaVendorAdapter?

    Thanks

    Mark
Working...
X