T - type of the id classP - type of the entity instance classpublic interface InstanceAwareIdGenerator<T,P>
IdGenerator allows for staying backward compatible with existing code.| Modifier and Type | Method and Description |
|---|---|
default org.bson.BsonValue |
asBsonValue(T id,
TypeCodecRegistry typeCodecRegistry) |
T |
generate(P instance) |
default org.bson.BsonValue asBsonValue(T id, TypeCodecRegistry typeCodecRegistry)
Copyright © 2020 BILD GmbH & Co. KG. All rights reserved.