Class BeanSerializer

java.lang.Object
com.querydsl.codegen.BeanSerializer
All Implemented Interfaces:
Serializer

public class BeanSerializer extends Object implements Serializer
BeanSerializer is a Serializer implementation which serializes EntityType instances into JavaBean classes
Author:
tiwe
  • Field Details

  • Constructor Details

    • BeanSerializer

      public BeanSerializer()
      Create a new BeanSerializer
    • BeanSerializer

      public BeanSerializer(String javadocSuffix)
      Create a new BeanSerializer with the given javadoc suffix
      Parameters:
      javadocSuffix - suffix to be used after the simple name in class level javadoc
    • BeanSerializer

      @Inject public BeanSerializer(@Named("javadocSuffix") String javadocSuffix, @Named("generatedAnnotationClass") Class<? extends Annotation> generatedAnnotationClass)
      Create a new BeanSerializer with the given javadoc suffix and generatedAnnotationClass
      Parameters:
      javadocSuffix - suffix to be used after the simple name in class level javadoc
      generatedAnnotationClass - the fully qualified class name of the Single-Element Annotation (with String element) to be used on the generated classes.
      See Also:
    • BeanSerializer

      public BeanSerializer(boolean propertyAnnotations)
      Create a new BeanSerializer
      Parameters:
      propertyAnnotations - true, to serialize property annotations
    • BeanSerializer

      public BeanSerializer(boolean propertyAnnotations, String javadocSuffix)
      Create a new BeanSerializer
      Parameters:
      propertyAnnotations - true, to serialize property annotations
      javadocSuffix - suffix to be used after the simple name in class level javadoc
    • BeanSerializer

      public BeanSerializer(boolean propertyAnnotations, String javadocSuffix, Class<? extends Annotation> generatedAnnotationClass)
      Create a new BeanSerializer
      Parameters:
      propertyAnnotations - true, to serialize property annotations
      javadocSuffix - suffix to be used after the simple name in class level javadoc
      generatedAnnotationClass - the fully qualified class name of the Single-Element Annotation (with String element) to be used on the generated classes. * @see Single-Element Annotation
  • Method Details