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

Moderator: admin

Post Reply
ETS User

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

Post 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?

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

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

Post 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.
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 28 guests