Closed pjklauser closed 9 years ago
change ObjectIdService to AccountIdService since we dont need it anymore for objectIds but need the checkdigit for accountId instead.
extend id concept to ZoneDB. make embedded id for Zone with Control."accountZoneId" and generated value for id,so use embedded key as a "generated key" - but it is then "multi-tenant".
JPA does not allow Generated on other than @Id fields - so we use simple generated id + tenantId which is the AccountZone#id of controldb.
see http://softwarecave.org/2014/08/02/primary-key-generators-in-jpa/