public class ExtendedBeanSerializer extends BeanSerializer
ExtendedBeanSerializer outputs primary key based equals, hashCode and
toString implementations
Requires column annotation generation to be enabledDEFAULT_JAVADOC_SUFFIX, DEFAULT_PROPERTY_ANNOTATIONS| Constructor and Description |
|---|
ExtendedBeanSerializer() |
ExtendedBeanSerializer(java.lang.String javadocSuffix,
java.lang.Class<? extends java.lang.annotation.Annotation> generatedAnnotationClass)
Create a new ExtendedBeanSerializer with the given javadoc suffix and generatedAnnotationClass
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToString(EntityType model,
CodeWriter writer) |
protected void |
bodyEnd(EntityType model,
CodeWriter writer) |
addFullConstructor, addInterface, addInterface, bodyStart, serialize, setAddFullConstructor, setAddToString, setPrintSupertypepublic ExtendedBeanSerializer()
@Inject
public ExtendedBeanSerializer(@Named(value="javadocSuffix")
java.lang.String javadocSuffix,
@Named(value="generatedAnnotationClass")
java.lang.Class<? extends java.lang.annotation.Annotation> generatedAnnotationClass)
javadocSuffix - suffix to be used after the simple name in class level javadocgeneratedAnnotationClass - the fully qualified class name of the Single-Element Annotation (with String element) to be used on the generated classes.protected void bodyEnd(EntityType model, CodeWriter writer) throws java.io.IOException
bodyEnd in class BeanSerializerjava.io.IOExceptionprotected void addToString(EntityType model, CodeWriter writer) throws java.io.IOException
addToString in class BeanSerializerjava.io.IOExceptionCopyright © 2007–2021 Querydsl. All rights reserved.