Package org.hibernate.cfg

Examples of org.hibernate.cfg.Mappings.iterateTables()


      config.addAnnotatedClass(AddressEntry.class);
      config.buildSessionFactory();
      Mappings mappings = config.createMappings();
      boolean foundIt = false;

      for ( Iterator iter = mappings.iterateTables(); iter.hasNext()) {
        Table table = (Table) iter.next();
        log.info("testWithEJB3NamingStrategy table = " + table.getName());
        if ( table.getName().equalsIgnoreCase("A_ADDRESS")) {
          foundIt = true;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.