pjklauser / bridgemq

Trusted Domain Messaging eXchange
0 stars 1 forks source link

Change to TABLE_ID generator for Entity#id #43

Closed pjklauser closed 9 years ago

pjklauser commented 9 years ago

see http://softwarecave.org/2014/08/02/primary-key-generators-in-jpa/

pjklauser commented 9 years ago

change ObjectIdService to AccountIdService since we dont need it anymore for objectIds but need the checkdigit for accountId instead.

pjklauser commented 9 years ago

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".

pjklauser commented 9 years ago

JPA does not allow Generated on other than @Id fields - so we use simple generated id + tenantId which is the AccountZone#id of controldb.