This seems to be the right solution. You can keep the PKs if you don't mark DB2 entities for generated values. As you need to have 2 PUs defined anyway (unless your persistence provider supports having 2 PUs with the same name but different set of DB properties), you should be able to add an orm.xml to one of them and override a subset of annotations.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=234922