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

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
johnlong
Posts: 197
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

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

Post by johnlong »

I think

Code: Select all

@Basic(fetch=LAZY)
is wrong syntax, it should be

Code: Select all

@Basic(fetch=FetchType.LAZY)

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

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

Post by admin »

No, it is fine. The same syntax is used here: http://docs.oracle.com/javaee/6/api/jav ... Basic.html
If you like our products and services, please help us by posting your review here.

johnlong
Posts: 197
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

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

Post by johnlong »

Yes, same syntax is used in official Oracle Java EE tutorials and in JavaDocs, however does not compile for me.
Does it work for you?

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

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

Post by admin »

You are right. Doesn't compile. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

johnlong
Posts: 197
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

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

Post by johnlong »

Thank you. Hope I don't get such question on exam.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests