Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,8 @@ import org.springframework.orm.jpa.JpaDialect;
|
||||
|
||||
/**
|
||||
* {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for Eclipse
|
||||
* Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.4.
|
||||
* Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.4;
|
||||
* compatible with EclipseLink 2.5 as well.
|
||||
*
|
||||
* <p>Exposes EclipseLink's persistence provider and EntityManager extension interface,
|
||||
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.
|
||||
@@ -43,10 +44,10 @@ import org.springframework.orm.jpa.JpaDialect;
|
||||
*/
|
||||
public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter {
|
||||
|
||||
private final PersistenceProvider persistenceProvider = new org.eclipse.persistence.jpa.PersistenceProvider();
|
||||
|
||||
private final JpaDialect jpaDialect = new EclipseLinkJpaDialect();
|
||||
|
||||
private final PersistenceProvider persistenceProvider = new org.eclipse.persistence.jpa.PersistenceProvider();
|
||||
|
||||
|
||||
@Override
|
||||
public PersistenceProvider getPersistenceProvider() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -45,11 +45,11 @@ import org.springframework.orm.jpa.JpaDialect;
|
||||
* <p>Exposes Hibernate's persistence provider and EntityManager extension interface,
|
||||
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.
|
||||
*
|
||||
* <p>Note that the package location of Hibernate's JPA support changed from 4.2 to 4.3:
|
||||
* from {@code org.hibernate.ejb.HibernateEntityManager(Factory)} to
|
||||
* {@code org.hibernate.jpa.HibernateEntityManager(Factory)}. As of Spring 4.0,
|
||||
* we're exposing the correct, non-deprecated variant depending on the Hibernate
|
||||
* version encountered at runtime, in order to avoid deprecation log entries.
|
||||
* <p>Note that the Java package location of Hibernate's JPA support changed from
|
||||
* 4.2 to 4.3: from {@code org.hibernate.ejb.HibernateEntityManager(Factory)} to
|
||||
* {@code org.hibernate.jpa.HibernateEntityManager(Factory)}.
|
||||
* As of Spring 4.0, we are exposing the appropriate, non-deprecated variant -
|
||||
* depending on the specific Hibernate version encountered at runtime.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @author Rod Johnson
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ import org.springframework.orm.jpa.JpaDialect;
|
||||
|
||||
/**
|
||||
* {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for Apache OpenJPA.
|
||||
* Developed and tested against OpenJPA 2.2.
|
||||
* Developed and tested against OpenJPA 2.2; compatible with OpenJPA 2.3 as well.
|
||||
*
|
||||
* <p>Exposes OpenJPA's persistence provider and EntityManager extension interface,
|
||||
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.
|
||||
@@ -43,9 +43,9 @@ import org.springframework.orm.jpa.JpaDialect;
|
||||
*/
|
||||
public class OpenJpaVendorAdapter extends AbstractJpaVendorAdapter {
|
||||
|
||||
private final PersistenceProvider persistenceProvider = new PersistenceProviderImpl();
|
||||
private final JpaDialect jpaDialect = new OpenJpaDialect();
|
||||
|
||||
private final OpenJpaDialect jpaDialect = new OpenJpaDialect();
|
||||
private final PersistenceProvider persistenceProvider = new PersistenceProviderImpl();
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user