org.eclipse.emf.teneo.hibernate.HbHelper Maven / Gradle / Ivy
/**
*
*
* Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Taal
*
*
* $Id: HbHelper.java,v 1.19 2010/04/02 22:28:53 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.teneo.PersistenceOptions;
import org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingBuilder;
import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedModel;
import org.eclipse.emf.teneo.ecore.EModelResolver;
import org.eclipse.emf.teneo.extension.ExtensionManager;
import org.eclipse.emf.teneo.extension.ExtensionManagerFactory;
import org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGenerator;
import org.eclipse.emf.teneo.hibernate.mapper.MappingUtil;
import org.hibernate.mapping.Component;
import org.hibernate.mapping.PersistentClass;
/**
* Is the main entry point for 'outside' users to create, register and retrieve EMF Data stores.
*
* @author Martin Taal
* @version $Revision: 1.19 $
*/
public class HbHelper {
/** The logger */
private static Log log = LogFactory.getLog(HbHelper.class);
/** The singleton instance of this class */
public static final HbHelper INSTANCE = new HbHelper();
/** The list of EMF Datastores mapped by name */
private final Hashtable emfDataStores = new Hashtable();
/** The list of emf datastores mapped by hibernate persistent class */
private final Hashtable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy