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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
M_Z

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

Post by M_Z »

Code: Select all

@OneToMany(cascade = {CascadeType.ALL }, targetEntity=OrderLineItem.class, mappedBy="custOrder")
private List<OrderLineItem> lineItems;
The "targetEntity" attribut should be defined only when Java generics not used. Here it does not make sense.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right, targetEntity is required only when generics are not used to specify the field type. It is not wrong to specify it though.
It has now been removed.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests