Resource identifier mapped to Composite key entity

This looks like a question for stackoverflow.com. Your table should have an ID column, even if it isn’t the PK.