I have a table, Pdetail, that has two primary keys: ncode and linecode. I cannot reference these columns in the front end (using Polymer), and I cannot use them in a predefined JPQL query. The source for the entity does not show these two columns in the table. I cannot add it as an attribute - it complains that the attribute already exists.
I have attached the source for the query and for the entity, as well as the auto-generated DDL for Pdetail.
The database type is MSSQL. It was migrated to Cuba.platform, not built from scratch.