Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] ManyToMany with aditional fields

Hi All,

this is my E-R model:

Item
-----------
item_id
item_description
item_price

Order
----------
order_id
order_date
order_customer

Item_order
-------------
item_id
order_id
quantity

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?

Thanks for your replies.

[1] http://pastebin.com/d1b1a3e6f
[2] http://pastebin.com/m31b4dce7
--
John Arévalo
GNU/Linux User #443701
http://counter.li.org/

Back to the top