Where's the link with Jboss and persistence ?
JBoss supports compound primary keys according to the spec.
Ask Lomboz forum for your problem.
I don't think Lomboz supports this. XDoclet does, so I think this is
a good moment for you to investigate the XDoclet created by the
Lomboz plugin, and add the extra XDoclet lines needed.