Search in sources :

Example 1 with JPAConfiguration

use of com.querydsl.apt.jpa.JPAConfiguration in project querydsl by querydsl.

the class RooAnnotationProcessor method createConfiguration.

@Override
protected Configuration createConfiguration(RoundEnvironment roundEnv) {
    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, entity, superType, embeddable, embedded, skip);
    conf.setAlternativeEntityAnnotation(RooJpaActiveRecord.class);
    return conf;
}
Also used : JPAConfiguration(com.querydsl.apt.jpa.JPAConfiguration) MappedSuperclass(javax.persistence.MappedSuperclass) DefaultConfiguration(com.querydsl.apt.DefaultConfiguration) Embedded(javax.persistence.Embedded) Transient(javax.persistence.Transient) RooJpaEntity(org.springframework.roo.addon.jpa.entity.RooJpaEntity) Embeddable(javax.persistence.Embeddable)

Aggregations

DefaultConfiguration (com.querydsl.apt.DefaultConfiguration)1 JPAConfiguration (com.querydsl.apt.jpa.JPAConfiguration)1 Embeddable (javax.persistence.Embeddable)1 Embedded (javax.persistence.Embedded)1 MappedSuperclass (javax.persistence.MappedSuperclass)1 Transient (javax.persistence.Transient)1 RooJpaEntity (org.springframework.roo.addon.jpa.entity.RooJpaEntity)1