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

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
ikotev
Posts: 17
Joined: Sat Feb 28, 2015 2:26 am
Contact:

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

Post by ikotev »

Hello,

Explanation why first answer is wrong is not correct.
One side of the ManyToMany must be made the owner of the relationship by specifying a mappedBy argument.
mappedBy is required only if you wish to have bi-directional mapping. However it is possible to have 2 uni-directional @ManyToMany mappings resulting in two join tables.

First answer is wrong because the targetEntity attribute on items field should point to Items.class not Category.class.

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

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

Post by admin »

You are right but I think the mistake in the option that you pointed was unintentional. The explanation is actually correct but misleading. It is correct because the situation presented is a bidirectional relationship and misleading because it doesn't make it clear that it applies only to bidirectional relationship.

I have updated the option and the explanation.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests