Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-05-04 00:59:41 -0400
committermtaal2007-05-04 00:59:41 -0400
commitd8b12ded458c714813011d2a78a5df02786e66bd (patch)
tree5b6645c7b557cc1a0e47146857a8fc9582b87046
parentb923dc6d08de8a1df0de3a610148244ac59bf3f9 (diff)
downloadorg.eclipse.emf.teneo-R0_7_maintenance.tar.gz
org.eclipse.emf.teneo-R0_7_maintenance.tar.xz
org.eclipse.emf.teneo-R0_7_maintenance.zip
Added getPaModel methodR0_7_maintenance
-rw-r--r--plugins/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbDataStore.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbDataStore.java b/plugins/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbDataStore.java
index ef005e868..259680382 100644
--- a/plugins/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbDataStore.java
+++ b/plugins/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbDataStore.java
@@ -11,7 +11,7 @@
* Martin Taal
* </copyright>
*
- * $Id: HbDataStore.java,v 1.14.2.2 2007/04/21 09:00:34 mtaal Exp $
+ * $Id: HbDataStore.java,v 1.14.2.3 2007/05/04 04:59:41 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate;
@@ -84,7 +84,7 @@ import org.hibernate.tool.hbm2ddl.SchemaUpdate;
* HbDataStoreFactory in the HibernateHelper.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.14.2.2 $
+ * @version $Revision: 1.14.2.3 $
*/
public class HbDataStore {
@@ -142,6 +142,9 @@ public class HbDataStore {
/** The hb context */
private HbContext hbContext = new HbContextImpl();
+ /** The pamodel, is set after initialization */
+ private PAnnotatedModel paModel;
+
/** Initializes this Data Store */
public void initialize() {
// check a few things
@@ -374,7 +377,7 @@ public class HbDataStore {
// DCB: Use Hibernate-specific annotation processing mechanism. This allows use of
// Hibernate-specific annotations.
final PersistenceOptions po = getPersistenceOptions();
- PAnnotatedModel paModel = MappingBuilder.INSTANCE.buildMapping(getEPackages(), po);
+ paModel = MappingBuilder.INSTANCE.buildMapping(getEPackages(), po);
HibernateMappingGenerator hmg = new HibernateMappingGenerator(po);
return hmg.generateToString(paModel);
}
@@ -1011,4 +1014,11 @@ public class HbDataStore {
public HashMap getReferers() {
return referers;
}
+
+ /**
+ * @return the paModel
+ */
+ public PAnnotatedModel getPaModel() {
+ return paModel;
+ }
} \ No newline at end of file

Back to the top