i've created an ItemOrderPK with item_id and order_id fields [1] and ItemOrder Entity [2]. When i try to deploy on Glassfish: this exception is thrown:
Exception Description: Entity [class package.ItemOrder] uses [class package.ItemOrderPK] as embedded id class whose access-type has been determined as [FIELD]. But [class package.ItemOrderPK] does not define any [FIELD]. It is likely that you have not provided sufficient metadata in your id class [class package.ItemOrderPK].
How can I solve this exception? or , there is another way to represent this model?