Package com.mysema.query.apt

Examples of com.mysema.query.apt.DefaultConfiguration


        Class<? extends Annotation> entities = QueryEntities.class;
        Class<? extends Annotation> entity = Entity.class;
        Class<? extends Annotation> superType = QuerySupertype.class;
        Class<? extends Annotation> embedded = Embedded.class;
        Class<? extends Annotation> skip = Transient.class;
        DefaultConfiguration conf = new DefaultConfiguration(roundEnv,
                processingEnv.getOptions(), Collections.<String>emptySet(),
                entities, entity, superType, null, embedded, skip);
        try {
            Class cl = Class.forName("com.mysema.query.mongodb.Point");
            conf.addCustomType(Double[].class, cl);
        } catch (ClassNotFoundException e) {
            throw new IllegalStateException(e);
        }
        return conf;
    }
View Full Code Here


        Class<? extends Annotation> entity = RooJpaEntity.class;
        Class<? extends Annotation> superType = MappedSuperclass.class;
        Class<? extends Annotation> embeddable = Embeddable.class;
        Class<? extends Annotation> embedded = Embedded.class;
        Class<? extends Annotation> skip = Transient.class;
        DefaultConfiguration conf = new JPAConfiguration(roundEnv, processingEnv.getOptions(),
                entity, superType, embeddable, embedded, skip);
        conf.setAlternativeEntityAnnotation(RooJpaActiveRecord.class);
        return conf;
    }
View Full Code Here

  @Override
  protected Configuration createConfiguration(RoundEnvironment roundEnv) {

    processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, "Running " + getClass().getSimpleName());

    DefaultConfiguration configuration = new DefaultConfiguration(roundEnv, processingEnv.getOptions(),
        Collections.<String> emptySet(), QueryEntities.class, Document.class, QuerySupertype.class,
        QueryEmbeddable.class, QueryEmbedded.class, QueryTransient.class);
    configuration.setUnknownAsEmbedded(true);

    return configuration;
  }
View Full Code Here

  @Override
  protected Configuration createConfiguration(RoundEnvironment roundEnv) {

    processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, "Running " + getClass().getSimpleName());

    DefaultConfiguration configuration = new DefaultConfiguration(roundEnv, processingEnv.getOptions(),
        Collections.<String> emptySet(), QueryEntities.class, NodeEntity.class, QuerySupertype.class,
        QueryEmbeddable.class, QueryEmbedded.class, QueryTransient.class);
    // configuration.setUnknownAsEmbedded(true);

    return configuration;
View Full Code Here

TOP

Related Classes of com.mysema.query.apt.DefaultConfiguration

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.