java.lang.Objectorg.springframework.orm.jpa.EntityManagerFactoryAccessor
org.springframework.orm.jpa.JpaAccessor
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
JpaInterceptor, JpaTemplate
Not intended to be used directly. See JpaTemplate and JpaInterceptor .
Juergen - Hoeller2.0 - | Fields inherited from org.springframework.orm.jpa.EntityManagerFactoryAccessor: |
|---|
| logger |
| Method from org.springframework.orm.jpa.JpaAccessor Summary: |
|---|
| afterPropertiesSet, flushIfNecessary, getEntityManager, getJpaDialect, isFlushEager, setEntityManager, setFlushEager, setJpaDialect, translateIfNecessary |
| Methods from org.springframework.orm.jpa.EntityManagerFactoryAccessor: |
|---|
| createEntityManager, getEntityManagerFactory, getJpaPropertyMap, getTransactionalEntityManager, setEntityManagerFactory, setJpaProperties, setJpaPropertyMap |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.orm.jpa.JpaAccessor Detail: |
|---|
|
|
|
Creates a default one for the specified EntityManagerFactory if none set. |
|
|
Eager flushing leads to immediate synchronization with the database, even if in a transaction. This causes inconsistencies to show up and throw a respective exception immediately, and JDBC access code that participates in the same transaction will see the changes as the database is already aware of them then. But the drawbacks are: |
The dialect object can be used to retrieve the underlying JDBC connection, for example. |
org.springframework.dao hierarchy if necessary, or
return the exception itself if it is not persistence related
Default implementation delegates to the JpaDialect. May be overridden in subclasses. |