[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] ManyToMany with aditional fields
|
Hello,
Its odd because the exception is stating your ItemOrderPK doesn't have
any fields. How have you defined the ItemOrderPK class and the item_id
and order_id fields? Can you post the ItemOrderPK class and how item_id
and order_id fields are mapped?
Best Regards,
Chris
John Arevalo wrote:
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/
------------------------------------------------------------------------
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users