• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EclipseLinkJpaVendorAdapter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter的典型用法代码示例。如果您正苦于以下问题:Java EclipseLinkJpaVendorAdapter类的具体用法?Java EclipseLinkJpaVendorAdapter怎么用?Java EclipseLinkJpaVendorAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EclipseLinkJpaVendorAdapter类属于org.springframework.orm.jpa.vendor包,在下文中一共展示了EclipseLinkJpaVendorAdapter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
/**
 * JPA entity manager factory bean.
 * Depends on the hsqlDbServer bean, in order to create the embedded
 * database, if one is to be used, before the entity manager factory.
 */
@Bean
@DependsOn("hsqlDbServer")
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
    /* JPA entity manager factory. */
    final LocalContainerEntityManagerFactoryBean theJpaEntityManagerFactory =
        new LocalContainerEntityManagerFactoryBean();
    theJpaEntityManagerFactory.setDataSource(dataSource());
    theJpaEntityManagerFactory.setPersistenceUnitName("message-cowboy");
    theJpaEntityManagerFactory.setJpaProperties(jpaProperties());

    /* JPA vendor adapter. */
    final EclipseLinkJpaVendorAdapter theJpaVendorAdapter =
        new EclipseLinkJpaVendorAdapter();
    theJpaVendorAdapter.setShowSql(true);

    theJpaEntityManagerFactory.setJpaVendorAdapter(theJpaVendorAdapter);

    return theJpaEntityManagerFactory;
}
 
开发者ID:krizsan,项目名称:message-cowboy,代码行数:25,代码来源:PersistenceConfiguration.java


示例2: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
/**
 * JPA entity manager factory bean.
 */
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
    /* JPA entity manager factory. */
    final LocalContainerEntityManagerFactoryBean theJpaEntityManagerFactory =
        new LocalContainerEntityManagerFactoryBean();
    theJpaEntityManagerFactory.setDataSource(dataSource());
    theJpaEntityManagerFactory.setPersistenceUnitName("message-cowboy");
    theJpaEntityManagerFactory.setJpaProperties(jpaProperties());

    /* JPA vendor adapter. */
    final EclipseLinkJpaVendorAdapter theJpaVendorAdapter =
        new EclipseLinkJpaVendorAdapter();
    theJpaVendorAdapter.setShowSql(true);

    theJpaEntityManagerFactory.setJpaVendorAdapter(theJpaVendorAdapter);

    return theJpaEntityManagerFactory;
}
 
开发者ID:krizsan,项目名称:message-cowboy,代码行数:22,代码来源:PersistenceTestConfiguration.java


示例3: getEclipseLinkJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
/**
 * Exposes EclipseLink's persistence provider and EntityManager extension interface,
 * and adapts AbstractJpaVendorAdapter's common configuration settings.
 */
@Bean
public EclipseLinkJpaVendorAdapter getEclipseLinkJpaVendorAdapter() {
    final EclipseLinkJpaVendorAdapter vendorAdapter = new EclipseLinkJpaVendorAdapter();
    vendorAdapter.setDatabasePlatform(eclipseLinkProperties.getDatabasePlatform());
    vendorAdapter.setGenerateDdl(eclipseLinkProperties.isGenerateDll());
    vendorAdapter.setShowSql(eclipseLinkProperties.isShowSql());
    return vendorAdapter;
}
 
开发者ID:JonkiPro,项目名称:REST-Web-Services,代码行数:13,代码来源:WebDatasourceConfig.java


示例4: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public FactoryBean<EntityManagerFactory> entityManagerFactory() {
	LocalContainerEntityManagerFactoryBean emf = new LocalContainerEntityManagerFactoryBean();
	emf.setDataSource(dataSource());

	emf.setJpaVendorAdapter(new EclipseLinkJpaVendorAdapter());

	emf.setPackagesToScan(TestJpaDomain.class.getPackage().getName());
	emf.setPersistenceUnitName("test");

	emf.getJpaPropertyMap().put("eclipselink.weaving", "false");
	return emf;
}
 
开发者ID:holon-platform,项目名称:holon-datastore-jpa-querydsl,代码行数:14,代码来源:TestJpaQueryDslDatastoreEclipselink.java


示例5: entityManagerFactoryEcandidat

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
/**
 * @return EntityManager Factory
 */
@Bean(name = "entityManagerFactoryEcandidat")
public LocalContainerEntityManagerFactoryBean entityManagerFactoryEcandidat() {
	DataSource ds = dataSourceEcandidat();
	/* Si l'appli s'initialise, il faut lancer Flyway */
	/**
	 * TODO:problème avec tomcat8 qui reinitialise les beans au shutdown et met
	 * flyway en erreur
	 */
	String init = System.getProperty(ConstanteUtils.STARTUP_INIT_FLYWAY);
	if (init == null || !init.equals(ConstanteUtils.STARTUP_INIT_FLYWAY_OK)) {
		initFlyway(ds);
		System.setProperty(ConstanteUtils.STARTUP_INIT_FLYWAY, ConstanteUtils.STARTUP_INIT_FLYWAY_OK);
	}

	LocalContainerEntityManagerFactoryBean localContainerEntityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();
	localContainerEntityManagerFactoryBean.setPersistenceUnitName(PERSISTENCE_UNIT_NAME);
	localContainerEntityManagerFactoryBean.setPackagesToScan(Candidat.class.getPackage().getName(),
			LocalTimePersistenceConverter.class.getPackage().getName());
	localContainerEntityManagerFactoryBean.setDataSource(ds);
	localContainerEntityManagerFactoryBean.setJpaDialect(new EclipseLinkJpaDialect());

	Properties jpaProperties = new Properties();
	/* Active le static weaving d'EclipseLink */
	jpaProperties.put(PersistenceUnitProperties.WEAVING, "static");
	/* Désactive le cache partagé */
	jpaProperties.put(PersistenceUnitProperties.CACHE_SHARED_DEFAULT, String.valueOf(false));
	localContainerEntityManagerFactoryBean.setJpaProperties(jpaProperties);

	EclipseLinkJpaVendorAdapter jpaVendorAdapter = new EclipseLinkJpaVendorAdapter();
	jpaVendorAdapter.setGenerateDdl(false);
	jpaVendorAdapter.setShowSql(false);
	localContainerEntityManagerFactoryBean.setJpaVendorAdapter(jpaVendorAdapter);

	return localContainerEntityManagerFactoryBean;
}
 
开发者ID:EsupPortail,项目名称:esup-ecandidat,代码行数:39,代码来源:JpaConfigEcandidat.java


示例6: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public FactoryBean<EntityManagerFactory> entityManagerFactory() {
	LocalContainerEntityManagerFactoryBean emf = new LocalContainerEntityManagerFactoryBean();
	emf.setDataSource(dataSource());

	EclipseLinkJpaVendorAdapter va = new EclipseLinkJpaVendorAdapter();
	va.setShowSql(true);

	emf.setJpaVendorAdapter(va);
	emf.setPackagesToScan(TestJpaDomain.class.getPackage().getName());
	emf.setPersistenceUnitName("test");
	emf.getJpaPropertyMap().put("eclipselink.weaving", "false");

	return emf;
}
 
开发者ID:holon-platform,项目名称:holon-datastore-jpa,代码行数:16,代码来源:TestJpaDatastoreEclipselink.java


示例7: jpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
protected EclipseLinkJpaVendorAdapter jpaVendorAdapter() {
    EclipseLinkJpaVendorAdapter adapter = new EclipseLinkJpaVendorAdapter();
    adapter.setDatabase(Database.MYSQL);
    adapter.setShowSql(true);
    adapter.setGenerateDdl(false);
    return adapter;
}
 
开发者ID:CK35,项目名称:example-ddd-with-spring-data-jpa,代码行数:9,代码来源:JpaConfiguration.java


示例8: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter() {
    LOGGER.info("PersistenceConfiguration.createJpaVendorAdapter()");
    EclipseLinkJpaVendorAdapter jpaVendorAdapter = new EclipseLinkJpaVendorAdapter();
    jpaVendorAdapter.setShowSql(true);
    return jpaVendorAdapter;
}
 
开发者ID:fdlessard,项目名称:SpringBootMagicEightBallProject,代码行数:8,代码来源:PersistenceConfiguration.java


示例9: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter() {
    return new EclipseLinkJpaVendorAdapter() {
        private final HawkBitEclipseLinkJpaDialect jpaDialect = new HawkBitEclipseLinkJpaDialect();

        @Override
        public EclipseLinkJpaDialect getJpaDialect() {
            return jpaDialect;
        }
    };
}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:12,代码来源:RepositoryApplicationConfiguration.java


示例10: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
    LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
    em.setDataSource(dataSource());
    em.setPackagesToScan(new String[]{"de.bluewhale.sabi.persistence.model"});
    em.setPersistenceUnitName("sabi");

   //  JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
    JpaVendorAdapter vendorAdapter = new EclipseLinkJpaVendorAdapter();
    em.setJpaVendorAdapter(vendorAdapter);
    em.setJpaProperties(additionalProperties());

    return em;
}
 
开发者ID:StefanSchubert,项目名称:sabi,代码行数:15,代码来源:EclipselinkJPAConfig.java


示例11: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public EntityManagerFactory entityManagerFactory(DataSource dataSource) {
    LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
    factory.setDataSource(dataSource);
    factory.setJpaVendorAdapter(new EclipseLinkJpaVendorAdapter());
    factory.setPackagesToScan(TenancyEclipseLinkSampleApplication.class.getPackage().getName());
    factory.getJpaPropertyMap().put(PersistenceUnitProperties.DDL_GENERATION_MODE, PersistenceUnitProperties.DDL_DATABASE_GENERATION);
    factory.getJpaPropertyMap().put(PersistenceUnitProperties.LOGGING_LEVEL, "FINE");
    factory.getJpaPropertyMap().put(PersistenceUnitProperties.WEAVING, "false");
    factory.getJpaPropertyMap().put(TenantHolder.TENANT_ID, TenantHolder.getTenant());
    factory.afterPropertiesSet();
    return factory.getObject();
}
 
开发者ID:spring-labs,项目名称:tenancy-sample,代码行数:14,代码来源:TenancyEclipseLinkSampleApplication.java


示例12: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public EntityManagerFactory entityManagerFactory() {
	LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
	EclipseLinkJpaVendorAdapter vendorAdapter = new EclipseLinkJpaVendorAdapter();
	vendorAdapter.setDatabasePlatform("org.eclipse.persistence.platform.database.H2Platform");
	//vendorAdapter.setGenerateDdl(true);
	factory.setPersistenceXmlLocation("eclipselink-persistence.xml");
	factory.setDataSource(dataSource());
	//factory.setPackagesToScan("ru.wrom.darts.statistic.persist");
	//	factory.setLoadTimeWeaver(loadTimeWeaver());
	factory.setJpaVendorAdapter(vendorAdapter);
	factory.afterPropertiesSet();
	return factory.getObject();
}
 
开发者ID:wrom56,项目名称:ru.wrom.darts.statistic,代码行数:15,代码来源:SpringConfig.java


示例13: entityManagerFactory

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
    final EclipseLinkJpaVendorAdapter vendorAdapter = new EclipseLinkJpaVendorAdapter();
    vendorAdapter.setDatabase(Database.DERBY);
    vendorAdapter.setGenerateDdl(true);

    final LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
    factory.setJpaVendorAdapter(vendorAdapter);
    factory.setPackagesToScan(getClass().getPackage().getName());
    factory.setDataSource(dataSource());

    return factory;
}
 
开发者ID:mhmxs,项目名称:SpringClips,代码行数:14,代码来源:PersistenceConfigurarion.java


示例14: jpaAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Bean
public JpaVendorAdapter jpaAdapter() {
    EclipseLinkJpaVendorAdapter eclipseLinkJpaVendorAdapter = new EclipseLinkJpaVendorAdapter();
    eclipseLinkJpaVendorAdapter.setShowSql(true);
    eclipseLinkJpaVendorAdapter.setDatabase(Database.H2);
    return eclipseLinkJpaVendorAdapter;
}
 
开发者ID:rvillars,项目名称:bookapp-nextgen,代码行数:8,代码来源:PersistenceConfig.java


示例15: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter() {
  return new EclipseLinkJpaVendorAdapter();
}
 
开发者ID:apache,项目名称:incubator-servicecomb-saga,代码行数:5,代码来源:EclipseLinkJpaConfiguration.java


示例16: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter() {
	return new EclipseLinkJpaVendorAdapter();
}
 
开发者ID:Just-Fun,项目名称:spring-data-examples,代码行数:5,代码来源:Application.java


示例17: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter() {
    return new EclipseLinkJpaVendorAdapter();
}
 
开发者ID:pacphi,项目名称:track-shipments,代码行数:5,代码来源:EclipseLinkJpaConfiguration.java


示例18: getSpringJpaVendorAdaptor

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
public JpaVendorAdapter getSpringJpaVendorAdaptor() {
    return new EclipseLinkJpaVendorAdapter();
}
 
开发者ID:linux-china,项目名称:unitils,代码行数:4,代码来源:EclipseLinkJpaProviderSupport.java


示例19: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Override
protected AbstractJpaVendorAdapter createJpaVendorAdapter()
{
    return new EclipseLinkJpaVendorAdapter();
}
 
开发者ID:ethlo,项目名称:dachs,代码行数:6,代码来源:EclipselinkCfg.java


示例20: createJpaVendorAdapter

import org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter; //导入依赖的package包/类
@Test
public void createJpaVendorAdapter() throws Exception {
    assertNotNull(persistenceConfiguration.createJpaVendorAdapter());
    assertTrue(persistenceConfiguration.createJpaVendorAdapter() instanceof EclipseLinkJpaVendorAdapter);
}
 
开发者ID:fdlessard,项目名称:SpringBootMagicEightBallProject,代码行数:6,代码来源:PersistenceConfigurationTest.java



注:本文中的org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TwoLineListItem类代码示例发布时间:2022-05-21
下一篇:
Java GroundOverlay类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap