From c526efd6be1fd98d5dd7f4251900933509de2a58 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Thu, 17 Mar 2011 10:24:08 +0100 Subject: [PATCH] Add JavaDoc to signal Hibrnate OGM dependencies --- .../main/java/org/hibernate/cfg/EJB3DTDEntityResolver.java | 1 + .../org/hibernate/ejb/packaging/PersistenceMetadata.java | 1 + .../org/hibernate/ejb/packaging/PersistenceXmlLoader.java | 7 ++++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/EJB3DTDEntityResolver.java b/hibernate-core/src/main/java/org/hibernate/cfg/EJB3DTDEntityResolver.java index 90ec6ae0c4..d2abfcbf7c 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/EJB3DTDEntityResolver.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/EJB3DTDEntityResolver.java @@ -33,6 +33,7 @@ import org.slf4j.LoggerFactory; /** * Resolve JPA xsd files locally + * Hibernate OGM uses this class, consider this some kind of exposed service at the SPI level * * @author Emmanuel Bernard */ diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceMetadata.java b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceMetadata.java index 1e8ef10f66..80dccbb59f 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceMetadata.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceMetadata.java @@ -34,6 +34,7 @@ import javax.persistence.spi.PersistenceUnitTransactionType; * Simple represenation of persistence.xml * * Object used by JBoss EJB 3 for persistence.xml parsing + * Object used by Hibernate OGM as well, consider this some kind of exposed service at the SPI level * * @author Bill Burke */ diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceXmlLoader.java b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceXmlLoader.java index f0550a9870..adbdef210d 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceXmlLoader.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/packaging/PersistenceXmlLoader.java @@ -160,9 +160,10 @@ public final class PersistenceXmlLoader { return deploy(url, overrides, resolver, PersistenceUnitTransactionType.JTA); } - /** - * Method used by JBoss EJB3 (4.2 and above) for parsing - */ + /** + * Method used by JBoss EJB3 (4.2 and above) for parsing + * Object used by Hibernate OGM as well, consider this some kind of exposed service at the SPI level + */ public static List deploy(URL url, Map overrides, EntityResolver resolver, PersistenceUnitTransactionType defaultTransactionType) throws Exception { Document doc = loadURL( url, resolver );