Java: QueryDsl custom column names in generated Q-classes

22 Views Asked by At

I got an entity class

@Config(defaultVariableName = "t_class_entity")
@Getter 
@NoArgsConstructor 
@AllArgsConstructor 
@Entity(name = "t_class_entity") 
public class ClassEntity {     
    @Column(name = "ct_qqq")     
    private Instant qqq; 
}

and generated class

@Generated("com.querydsl.codegen.EntitySerializer") 
public class QClassEntity extends EntityPathBase<ClassEntity> {
    public final DateTimePath<java.time.Instant> qqq = createDateTime("qqq", java.time.Instant.class); 
}

I need to replace qqq in generated class to ct_qqq.

Our project use exactly this way (com.querydsl.apt.jpa.JPAAnnotationProcessor) so I do not want to change it if there is any other approach.

0

There are 0 best solutions below