officially deprecated TopLinkJpaDialect in favor of EclipseLink and Spring's EclipseLinkJpaDialect; updated supported version ranges for EclipseLink and OpenJPA

This commit is contained in:
Juergen Hoeller 2011-12-21 16:47:30 +01:00 committed by Chris Beams
parent 392247d674
commit 391434e089
6 changed files with 21 additions and 18 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,7 +18,6 @@ package org.springframework.orm.jpa.vendor;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceException; import javax.persistence.PersistenceException;
@ -35,7 +34,8 @@ import org.springframework.transaction.TransactionException;
/** /**
* {@link org.springframework.orm.jpa.JpaDialect} implementation for Eclipse * {@link org.springframework.orm.jpa.JpaDialect} implementation for Eclipse
* Persistence Services (EclipseLink). Developed and tested against EclipseLink 1.0. * Persistence Services (EclipseLink). Developed and tested against EclipseLink
* 1.0 as well as 2.0-2.3.
* *
* <p>By default, this class acquires a EclipseLink transaction to get the JDBC Connection * <p>By default, this class acquires a EclipseLink transaction to get the JDBC Connection
* early. This allows mixing JDBC and JPA/EclipseLink operations in the same transaction. * early. This allows mixing JDBC and JPA/EclipseLink operations in the same transaction.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 * {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for Eclipse
* Persistence Services (EclipseLink). Developed and tested against EclipseLink 1.0. * Persistence Services (EclipseLink). Developed and tested against EclipseLink
* 1.0 as well as 2.0-2.3.
* *
* <p>Exposes EclipseLink's persistence provider and EntityManager extension interface, * <p>Exposes EclipseLink's persistence provider and EntityManager extension interface,
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings. * and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2007 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,7 +18,6 @@ package org.springframework.orm.jpa.vendor;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceException; import javax.persistence.PersistenceException;
@ -34,8 +33,8 @@ import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionException; import org.springframework.transaction.TransactionException;
/** /**
* {@link org.springframework.orm.jpa.JpaDialect} implementation for * {@link org.springframework.orm.jpa.JpaDialect} implementation for Apache OpenJPA.
* Apache OpenJPA. Developed and tested against OpenJPA 0.9.7. * Developed and tested against OpenJPA 1.1 as well as 2.0/2.1.
* *
* @author Costin Leau * @author Costin Leau
* @author Juergen Hoeller * @author Juergen Hoeller

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,8 +29,8 @@ import org.apache.openjpa.persistence.PersistenceProviderImpl;
import org.springframework.orm.jpa.JpaDialect; import org.springframework.orm.jpa.JpaDialect;
/** /**
* {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for * {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for Apache OpenJPA.
* Apache OpenJPA. Developed and tested against OpenJPA 1.0.0. * Developed and tested against OpenJPA 1.1 as well as 2.0/2.1.
* *
* <p>Exposes OpenJPA's persistence provider and EntityManager extension interface, * <p>Exposes OpenJPA's persistence provider and EntityManager extension interface,
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings. * and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,7 +18,6 @@ package org.springframework.orm.jpa.vendor;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceException; import javax.persistence.PersistenceException;
@ -50,7 +49,10 @@ import org.springframework.transaction.TransactionException;
* @since 2.0 * @since 2.0
* @see #setLazyDatabaseTransaction * @see #setLazyDatabaseTransaction
* @see org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy * @see org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy
* @deprecated as of Spring 3.1, in favor of the EclipseLink project and
* Spring's corresponding {@link EclipseLinkJpaDialect}
*/ */
@Deprecated
public class TopLinkJpaDialect extends DefaultJpaDialect { public class TopLinkJpaDialect extends DefaultJpaDialect {
private boolean lazyDatabaseTransaction = false; private boolean lazyDatabaseTransaction = false;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,11 +16,9 @@
package org.springframework.orm.jpa.vendor; package org.springframework.orm.jpa.vendor;
import java.util.Map;
import java.util.Properties;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level; import java.util.logging.Level;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.spi.PersistenceProvider; import javax.persistence.spi.PersistenceProvider;
@ -42,7 +40,10 @@ import org.springframework.orm.jpa.JpaDialect;
* @since 2.0 * @since 2.0
* @see oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider * @see oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
* @see oracle.toplink.essentials.ejb.cmp3.EntityManager * @see oracle.toplink.essentials.ejb.cmp3.EntityManager
* @deprecated as of Spring 3.1, in favor of the EclipseLink project and
* Spring's corresponding {@link EclipseLinkJpaVendorAdapter}
*/ */
@Deprecated
public class TopLinkJpaVendorAdapter extends AbstractJpaVendorAdapter { public class TopLinkJpaVendorAdapter extends AbstractJpaVendorAdapter {
private final PersistenceProvider persistenceProvider = new EntityManagerFactoryProvider(); private final PersistenceProvider persistenceProvider = new EntityManagerFactoryProvider();