Multiple Layers

This is the manual for older MicroStream versions (Version < 5.0).

The new documentation (Version >= 5.0) is located at:

https://docs.microstream.one/

Entities can be created with an arbitrary amount of layers, so feel free to combine them as you like:

EntityVersionContext<Long> versionContext = 
	EntityVersionContext.AutoIncrementingLong();
		
JulLogger logger = new JulLogger();
		
Person john = PersonCreator.New()
	.addLayer(versionContext)
	.addLayer(logger)
	.firstName("John")
	.lastName("Doe")
	.create();

The example on GitHub makes use of all the described features.

Last updated