[hibernate-commits] Hibernate SVN: r14134 - jpa-api/trunk/src/javax/persistence.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Oct 25 18:34:46 EDT 2007


Author: epbernard
Date: 2007-10-25 18:34:46 -0400 (Thu, 25 Oct 2007)
New Revision: 14134

Modified:
   jpa-api/trunk/src/javax/persistence/Persistence.java
Log:
EJB-321 add typo to complain to the faulty TCK. Year I know, lame...

Modified: jpa-api/trunk/src/javax/persistence/Persistence.java
===================================================================
--- jpa-api/trunk/src/javax/persistence/Persistence.java	2007-10-25 13:57:58 UTC (rev 14133)
+++ jpa-api/trunk/src/javax/persistence/Persistence.java	2007-10-25 22:34:46 UTC (rev 14134)
@@ -19,7 +19,8 @@
  */
 public class Persistence {
 
-	public static final String PERSISTENCE_PROVIDER = PersistenceProvider.class.getName();
+	//typo intended because it leaked into the JPA 1 spec. Do not use this constant.
+	public static final java.lang.String PERSISTENCE_PROVIDER = "javax.persistence.spi.PeristenceProvider";
 
 	protected static final Set<PersistenceProvider> providers = new HashSet<PersistenceProvider>();
 




More information about the hibernate-commits mailing list