About Question enthuware.oce-jpad.v6.2.428 :
Posted: Sat Dec 06, 2014 10:10 am
Regarding the sample code:
..and the explanation:
Thanks,
Kenneth
Code: Select all
@OrderColunm // an additional column LINEITEM_ORDER will be created in the db,
//though there is no persistent field corresponding to this column in LineItem entity.
//It is used transparently by the persistence provider.
List<LineItem> lineItems;
Shouldn't the column name be 'LINEITEMS_ORDER' instead of 'LINEITEM_ORDER'? The explanation says name of property or field and in the case above, the name of field/property is lineItems (with trailing 's').If name is not specified, the column name is the concatenation of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class; "_"; "ORDER". In the example given above, the name would be LINEITEM_ORDER.
Thanks,
Kenneth