Announcement Announcement Module
Collapse
No announcement yet.
spring data jpa 1.6.0.RC1 problem finding entityManagerFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring data jpa 1.6.0.RC1 problem finding entityManagerFactory

    in the 1.6.0.RC1 there is a problem, if the id for the EntityManagerFactoryBean is not named entityManaterFactroy.

    exp.
    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean"> ...
    works fine.
    If the factory bean is named otherwise
    <bean id="wabSysEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean"> ...

    there occures an exception
    ...NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined...

    in the 1.5.x releases, the factory bean could be named as one like..

    bug or feature? Don't know..
Working...
X