Page 1 of 1

About Question enthuware.oce-jpad.v6.2.428 :

Posted: Sat Dec 06, 2014 10:10 am
by kdmandawe
Regarding the sample code:

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;

..and the explanation:
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.
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').

Thanks,
Kenneth

Re: About Question enthuware.oce-jpad.v6.2.428 :

Posted: Sun Dec 07, 2014 1:59 am
by admin
Yes, you are right. It should be LINEITEMS_ORDER. Fixed.
thank you for your feedback!
Paul.

Re: About Question enthuware.oce-jpad.v6.2.428 :

Posted: Mon Dec 15, 2014 12:55 pm
by bluster
@OrderColunm -> Should be @OrderColumn

Re: About Question enthuware.oce-jpad.v6.2.428 :

Posted: Mon Dec 15, 2014 10:25 pm
by admin
Sorry, I couldn't find it. I searched for it programmatically as well but still couldn't find any. Could you please tell me where exactly did you see it?
-Paul.

Re: About Question enthuware.oce-jpad.v6.2.428 :

Posted: Thu Dec 18, 2014 12:26 pm
by bluster
...please tell me where exactly did you see it?
Blue answer #1.

Here is a longer quote.
For example:
@Entity
public class CustomerOrder{   
@OneToMany   
@OrderColunm  // an additional column LINEITEM_ORDER will be created in the db,      

Re: About Question enthuware.oce-jpad.v6.2.428 :

Posted: Thu Dec 18, 2014 8:33 pm
by admin
Thanks! This seems to have been fixed already.
-Paul.