Announcement Announcement Module
No announcement yet.
jpaVendorAdapter vs JpaDialect Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • jpaVendorAdapter vs JpaDialect

    The javadoc on JpaVendorAdapter seems to indicate that if you configure a JPAVendorAdatprer that you don't need to specify the JPADialect as this is taken care of for you. It says:

    "Specify the JpaVendorAdapter implementation for the desired JPA provider, if any. This will initialize appropriate defaults for the given provider, such as persistence provider class and JpaDialect, unless locally overridden in this FactoryBean."

    However, the Spring 3 documentation doesn't seem to indicate this is that case saying that you need to configure the JPADialect if you want advanced exception translation and other features.

    Anyone know for sure?

  • #2
    I'm still getting used to all this open source goodness. A quick check revealed all:

    if (this.jpaDialect == null) {
    this.jpaDialect = this.jpaVendorAdapter.getJpaDialect();