Package er.cayenne.example

Source Code of er.cayenne.example.Application

package er.cayenne.example;

import org.apache.cayenne.configuration.server.ServerRuntime;

import er.cayenne.CayenneApplication;
import er.extensions.appserver.ERXApplication;

public class Application extends CayenneApplication {
  public static void main(String[] argv) {
    ERXApplication.main(argv, Application.class);
  }

  public Application() {
    ERXApplication.log.info("Welcome to " + name() + " !");
    /* ** put your initialization code in here ** */
  }
 
  @Override
  protected ServerRuntime createRuntime() {
    return new ServerRuntime("cayenne-project.xml");
  }
 
}
TOP

Related Classes of er.cayenne.example.Application

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.