Package org.springframework.orm.jpa.vendor

Examples of org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter


  private EntityManagerFactory getEntityManagerFactory(DataSource dataSource) throws Exception {
    LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
    factory.setDataSource(dataSource);
    factory.setPersistenceXmlLocation("classpath:org/springframework/webflow/persistence/persistence.xml");
    OpenJpaVendorAdapter openJpa = new OpenJpaVendorAdapter();
    factory.setJpaVendorAdapter(openJpa);
    factory.afterPropertiesSet();
    return factory.getObject();
  }
View Full Code Here


  private EntityManagerFactory getEntityManagerFactory(DataSource dataSource) throws Exception {
    LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
    factory.setDataSource(dataSource);
    factory.setPersistenceXmlLocation("classpath:org/springframework/webflow/persistence/persistence.xml");
    OpenJpaVendorAdapter openJpa = new OpenJpaVendorAdapter();
    factory.setJpaVendorAdapter(openJpa);
    factory.afterPropertiesSet();
    return factory.getObject();
  }
View Full Code Here

TOP

Related Classes of org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.