Spring Framework EclipseLinkJpaVendorAdapter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework EclipseLinkJpaVendorAdapter class.

This code example shows how to use the following methods:
	} 
 
	@Bean 
	public JpaVendorAdapter jpaVendorAdapter() 
	{ 
		EclipseLinkJpaVendorAdapter eclipseLinkJpaVendorAdapter = new EclipseLinkJpaVendorAdapter(); 
		return eclipseLinkJpaVendorAdapter; 
	} 
 
	@Bean 
	public FactoryBean<EntityManagerFactory> localEntityManagerFactoryBean() 
	{ 
		LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean(); 
		entityManagerFactoryBean.setPersistenceUnitName(DEFAULT_PERSISTENCE_UNIT_NAME); 
		entityManagerFactoryBean.setDataSource(dataSource()); 
		entityManagerFactoryBean.setJpaDialect(jpaDialect()); 
		entityManagerFactoryBean.setJpaVendorAdapter(jpaVendorAdapter()); 
		entityManagerFactoryBean.setJpaPropertyMap(Collections.singletonMap("eclipselink.weaving", "false")); // TODO use load time weaving 
		// entityManagerFactoryBean.setLoadTimeWeaver(loadTimeWeaver); // TODO use load time weaving 
		return entityManagerFactoryBean; 
4
CodeRank