Package org.sf.bee.persistence.entitymanager

Examples of org.sf.bee.persistence.entitymanager.BeeEntityManagerFactory


    private void createTables(final String unitName,
            final BeePersistenceProperties props) throws Exception {
        //-- create tables property --//
        props.setDDLGENERATION(true);
        final BeeEntityFactoryRepository ctrl = BeeEntityFactoryRepository.getInstance();
        final BeeEntityManagerFactory emf = ctrl.get(unitName).getFactoryWrapper();
        try {
            this.checkDatabaseExists(props);
            if (null != emf) {
                emf.createTables();
            } else {
                throw new Exception(
                        StringUtils.format("Persistence unit '%s' not found.",
                        unitName));
            }
View Full Code Here

TOP

Related Classes of org.sf.bee.persistence.entitymanager.BeeEntityManagerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.