Configuration This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
https://docs.microstream.one/
The layered entities code generator is an annotation processor, provided by the base
module.
The maven configuration looks like this:
Copy <dependencies>
<dependency>
<groupId>one.microstream</groupId>
<artifactId>base</artifactId>
<version>02.01.00-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
.