1. 程式人生 > >jpa hibernate mybatis

jpa hibernate mybatis

hiberna container nag jpa manager cto man bean factor

jpa:

  entityManagerFactory:

    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean

hibernate:

  sessionFactory:

    org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean

mybatis:

  sqlSessionFactory:

    org.mybatis.spring.SqlSessionFactoryBean

總結:entityManagerFactory和sessionFactory都是用的spring框架提供的ORM,而sqlSessionFactory是mybatis自己的

jpa hibernate mybatis