简体   繁体   中英

eclipselink dynamic table at runtime

Using eclipselink 2.0 how is it possible to generate more than one table per mapped entity? That is, having a POJO to map a Client and then for each new Client to create a set of tables called X_clientId, Y_clientId, Z_clientId (with X, Y, Z being mapped entities). And the tables X, Y, Z should have the same structure for each client.

Not sure I understand, perhaps clarify. Have you considered inheritance? You could have X, Y, Z subclasses of Client.

You may also look into EclipseLink multi-tenant support.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM