Class IncrementalIdStrategy


  • public final class IncrementalIdStrategy
    extends NumericIdStrategy
    The ids are generated (incremental) on the fly and you can optionally register classes by reserving the first x ids via IncrementalIdStrategy.Registry. To minimize overhead, ArrayLists are used for the id mapping rather than ConcurrentHashMap. This optimization has a disadvantage though. Ids will not be unlimited. You'll have to specificy a max id for the 4 types (pojo, enum, collection, map)