Package com.querydsl.codegen
Class DefaultEmbeddableSerializer
java.lang.Object
com.querydsl.codegen.DefaultEntitySerializer
com.querydsl.codegen.DefaultEmbeddableSerializer
- All Implemented Interfaces:
EmbeddableSerializer,EntitySerializer,Serializer
public final class DefaultEmbeddableSerializer
extends DefaultEntitySerializer
implements EmbeddableSerializer
EmbeddableSerializer is a Serializer implementation for embeddable types- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.codegen.DefaultEntitySerializer
generatedAnnotationClass, keywords, typeMappings -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEmbeddableSerializer(TypeMappings typeMappings, Collection<String> keywords) Create a newEmbeddableSerializerinstance.DefaultEmbeddableSerializer(TypeMappings typeMappings, Collection<String> keywords, Class<? extends Annotation> generatedAnnotationClass) Create a newEmbeddableSerializerinstance -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintroClassHeader(CodeWriter writer, EntityType model) Methods inherited from class com.querydsl.codegen.DefaultEntitySerializer
constructorContent, constructors, constructorsForVariables, customField, entityAccessor, entityField, getAdditionalConstructorParameter, hasOwnEntityProperties, initEntityField, initEntityFields, intro, introDefaultInstance, introDelegatePackages, introFactoryMethods, introImports, introInits, introJavadoc, introPackage, introSuper, isImportExprPackage, listAccessor, mapAccessor, outro, serialize, serialize, serializePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.querydsl.codegen.Serializer
serialize
-
Constructor Details
-
DefaultEmbeddableSerializer
@Inject public DefaultEmbeddableSerializer(TypeMappings typeMappings, @Named("keywords") Collection<String> keywords, @Named("generatedAnnotationClass") Class<? extends Annotation> generatedAnnotationClass) Create a newEmbeddableSerializerinstance- Parameters:
typeMappings- type mappings to be usedkeywords- keywords to be usedgeneratedAnnotationClass- the fully qualified class name of the Single-Element Annotation (withStringelement) to be used on the generated classes.- See Also:
-
DefaultEmbeddableSerializer
Create a newEmbeddableSerializerinstance.- Parameters:
typeMappings- type mappings to be usedkeywords- keywords to be used
-
-
Method Details
-
introClassHeader
- Overrides:
introClassHeaderin classDefaultEntitySerializer- Throws:
IOException
-