Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.73 :

Posted: Sun Dec 18, 2011 12:00 pm
by ETS User
The correct answer for this Q says "If a property based access is chosen for an entity class, the names of the fields do not have to correspond to the method names."
Isn't property based access, based on JavaBean naming convention? JavaBean convention mandates a certain naming convention. Doesn't that mean the above mentioned answer is incorrect? Should it be field based access in the above mentioned option?

Re: About Question com.enthuware.ets.scbcd.v5.2.73 :

Posted: Sun Dec 18, 2011 6:16 pm
by admin
Hello, The given answer is correct. When you use property based access, the actual fields names are irrelevant. For example:

int xyz;
public int getStatus(){ return xyz; }
public void setStatus(int x){ xyz = x; }

In this case, the property name would be status, even though there is no field named status.

HTH,
Paul.