Package net.sf.hibernate.cfg

Examples of net.sf.hibernate.cfg.Configuration.addJar()


      if (this.mappingJarLocations != null) {
        // Register given Hibernate mapping definitions, contained in jar files.
        for (int i = 0; i < this.mappingJarLocations.length; i++) {
          Resource resource = this.mappingJarLocations[i];
          config.addJar(resource.getFile());
        }
      }

      if (this.mappingDirectoryLocations != null) {
        // Register all Hibernate mapping definitions in the given directories.
View Full Code Here


                        cfg.configure(args[i].substring(9));
                    }
                } else {
                    String filename = args[i];
                    if (filename.endsWith(".jar")) {
                        cfg.addJar(new File(filename));
                    } else {
                        cfg.addFile(filename);
                    }
                }
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.