Do you have the code that adds/updates a record in your table?
In my opinion this looks like a DB constraint issue. Are you trying to insert a new record in Order_detail table and order_header table simultaneously? If yes you will have to add the order_header record first and then set the order_header entity to the order_detail entity.
Joined: Sep 12, 2007
i solved the problem..
the problem is I set the po_no which is the primary key of master table and FK of transaction table.i set that using seXX method in transaction table ejb