Package gov.nasa.arc.mct.dbpersistence.dao

Examples of gov.nasa.arc.mct.dbpersistence.dao.DatabaseIdentification


            
             EntityManager em = entityManagerFactory.createEntityManager();
             try {
              
               TypedQuery<DatabaseIdentification> q = em.createNamedQuery("DatabaseIdentification.findSchemaId", DatabaseIdentification.class);
               DatabaseIdentification di = q.getSingleResult();
               if (!schemaId.equals(di.getValue())) {
                 String errMsg = "Mismatched schemaID.\nDeployed schema ID is " + di.getValue() +
                 "\nbut MCT requires schema ID " + schemaId;
                 LOGGER.error(errMsg);
                 throw new RuntimeException (errMsg);
               }
             } finally {
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.dbpersistence.dao.DatabaseIdentification

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.