Package net.sf.hibernate.mapping

Examples of net.sf.hibernate.mapping.PersistentClass


    /** iterates through all tables in cfg, tests that they physically exist */
    private boolean allTablesExist() {

        Iterator itr = _cfg.getClassMappings() ;
        while (itr.hasNext()) {
            PersistentClass pClass = (PersistentClass) itr.next() ;
            if (! tableExists(pClass.getTable().getName())) return false ;
        }
        return true;
    }
View Full Code Here


    public static void configure(Configuration hibernateConfig) {
        Iterator classMappings = hibernateConfig.getClassMappings();
        try {
            while (classMappings.hasNext()) {
                PersistentClass persistentClass = (PersistentClass)classMappings.next();
                configureClassCache(persistentClass.getMappedClass());
            }
            configureClassCache(QueryCache.class);
            configureClassCache(UpdateTimestampsCache.class);
        } catch (Exception e) {
            log.error("error", e);
View Full Code Here

TOP

Related Classes of net.sf.hibernate.mapping.PersistentClass

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.