Configuration

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

The maven configuration looks like this:

pom.xml
<dependencies>
	<dependency>
		<groupId>one.microstream</groupId>
		<artifactId>microstream-base</artifactId>
		<version>05.00.02-MS-GA</version>
	</dependency>
</dependencies>

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

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

The same applies to the Appendable.