Configuration

The layered entities code generator is an annotation processor, provided by the codegen-entity module.

The maven configuration looks like this:

pom.xml
<dependencies>
	<dependency>
		<groupId>org.eclipse.serializer</groupId>
		<artifactId>codegen-entity</artifactId>
		<version>1.3.2</version>
	</dependency>
</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.8.1</version>
			<configuration>
				<source>11</source>
				<target>11</target>
				<encoding>UTF-8</encoding>
				<annotationProcessors>
					<annotationProcessor>org.eclipse.serializer.codegen.entity.EntityProcessor</annotationProcessor>
				</annotationProcessors>
				<compilerArgs>
					<arg>-Aentity.hashequalator=true</arg>
					<arg>-Aentity.appendable=true</arg>
				</compilerArgs>
			</configuration>
		</plugin>
	</plugins>
</build>

If you don’t want the HashEqualator to be generated, just set the entity.hashequalator argument to false. You can leave it out otherwise, the default value is true.

The same applies to the Appendable.