Package com.querydsl.sql.codegen
Class ExtendedBeanSerializer
java.lang.Object
com.querydsl.codegen.BeanSerializer
com.querydsl.sql.codegen.ExtendedBeanSerializer
- All Implemented Interfaces:
Serializer
ExtendedBeanSerializer
outputs primary key based equals
, hashCode
and
toString
implementations
Requires column annotation generation to be enabled- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.codegen.BeanSerializer
DEFAULT_JAVADOC_SUFFIX, DEFAULT_PROPERTY_ANNOTATIONS
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedBeanSerializer
(String javadocSuffix, Class<? extends Annotation> generatedAnnotationClass) Create a new ExtendedBeanSerializer with the given javadoc suffix and generatedAnnotationClass -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToString
(EntityType model, com.querydsl.codegen.utils.CodeWriter writer) protected void
bodyEnd
(EntityType model, com.querydsl.codegen.utils.CodeWriter writer) Methods inherited from class com.querydsl.codegen.BeanSerializer
addFullConstructor, addInterface, addInterface, bodyStart, serialize, setAddFullConstructor, setAddToString, setPrintSupertype
-
Constructor Details
-
ExtendedBeanSerializer
public ExtendedBeanSerializer() -
ExtendedBeanSerializer
@Inject public ExtendedBeanSerializer(@Named("javadocSuffix") String javadocSuffix, @Named("generatedAnnotationClass") Class<? extends Annotation> generatedAnnotationClass) Create a new ExtendedBeanSerializer with the given javadoc suffix and generatedAnnotationClass- Parameters:
javadocSuffix
- suffix to be used after the simple name in class level javadocgeneratedAnnotationClass
- the fully qualified class name of the Single-Element Annotation (withString
element) to be used on the generated classes.- See Also:
-
-
Method Details
-
bodyEnd
protected void bodyEnd(EntityType model, com.querydsl.codegen.utils.CodeWriter writer) throws IOException - Overrides:
bodyEnd
in classBeanSerializer
- Throws:
IOException
-
addToString
protected void addToString(EntityType model, com.querydsl.codegen.utils.CodeWriter writer) throws IOException - Overrides:
addToString
in classBeanSerializer
- Throws:
IOException
-