Page 1 of 1

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

Posted: Sat Dec 24, 2016 2:42 pm
by johnlong
I think

Code: Select all

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

Code: Select all

@Basic(fetch=FetchType.LAZY)

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

Posted: Sun Dec 25, 2016 12:50 pm
by admin
No, it is fine. The same syntax is used here: http://docs.oracle.com/javaee/6/api/jav ... Basic.html

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

Posted: Sun Dec 25, 2016 6:47 pm
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?

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

Posted: Mon Dec 26, 2016 1:29 am
by admin
You are right. Doesn't compile. Fixed.
thank you for your feedback!

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

Posted: Wed Dec 28, 2016 7:56 am
by johnlong
Thank you. Hope I don't get such question on exam.