Help please in generating the code.. i'd got an error

Help…

I can’t generate the code…
ERROR says: No primary key attribute found in class Order.

But i don’t need a primary key in that entity…

I have 2 entity,

item_master_file

  • item_code(PK)
  • description
  • qty_stock

order_line

  • item_code(FK)
  • qty

How can i generate the code without setting a primary key in the order_line entity?
Thanks…

I’m sorry that we do not support generate code without primary key. The generated code will not work if there is no primary key defined, and that’s why we throw and error in your case.

Best regards,
Rain