Examples of mapPackage()


Examples of com.github.jmkgreen.morphia.Morphia.mapPackage()

    notNull(env, "The env is required.");
    String[] namespace = env.getProperty(APP_NAMESPACE, String[].class);
    Morphia morphia = new Morphia();
    for (String ns : namespace) {
      logger.debug("Adding pacakge: {}", ns);
      morphia.mapPackage(ns);
    }

    if (validationFactory != null) {
      morphia.getMapper().addInterceptor(
          new Jsr303Interceptor(validationFactory));
View Full Code Here

Examples of com.google.code.morphia.Morphia.mapPackage()

    public Morphia createInstance(){
        Morphia morphia = new Morphia();
        MorphiaValidation morphiaValidation = new MorphiaValidation();
        morphiaValidation.applyTo(morphia);
        return morphia.mapPackage(packageName);
    }
}
View Full Code Here

Examples of com.google.code.morphia.Morphia.mapPackage()

  @Override
  public Morphia getObject() throws Exception {
    final Morphia morphia = new Morphia();
    if (!"".equals(this.packageName)) {
      morphia.mapPackage(this.packageName);
    }
    return morphia;
  }

  @Override
View Full Code Here

Examples of com.google.code.morphia.Morphia.mapPackage()

        // lightweight wrapper around the JSR303 API Validation Extension
        new MorphiaValidation().applyTo(m);

        if (mapPackages != null) {
            for (String packageName : mapPackages) {
                m.mapPackage(packageName, ignoreInvalidClasses);
            }
        }
        if (mapClasses != null) {
            for (String entityClass : mapClasses) {
                m.map(Class.forName(entityClass));
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifservice");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "SingleTag"),
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifservice");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "SimpleDocument"),
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifservice");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "ComplexDocument"),
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifserviceWrapped");
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   ">SimpleDocument"),
               SimpleDocument_ElemType.class );
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifserviceWrapped");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   ">ComplexDocument"),
View Full Code Here

Examples of org.apache.wsif.WSIFService.mapPackage()

          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");

            service.mapPackage("http://soapinterop.org/", "interop.wsifserviceWrapped");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   ">SingleTag"),
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.