// IdGenerator
public class IdGenerator { private long maxId; public IdGenerator(long start) { maxId = start; } public long getNextId () { return ++maxId; } } // IdGenerator