Results 1 to 4 of 4
- 11-02-2009, 06:16 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 16
- Rep Power
- 0
Entity - Field-Based Access Vs Property Based Access
P-230 of EJB3 In Action Book states "If you want to use field-based access, you can declare all your POJO persisted
data fields public or protected"
P-231
"Even if you used field-based access, we recommend that you make the fields private and expose the fields to be modified
by getter/setter method."
The above 2 statements are contradictory... Can we mark our fields private and use them for field-based access ?
- 11-02-2009, 06:29 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Why do you think they are contradictory? you can declare does not mean you must declare ...
- 11-02-2009, 07:03 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 16
- Rep Power
- 0
I take my words back.. The statements are not contradictory. Rather the first statement is misleading. It doesn;t mention that even field based can be private..
- 11-02-2009, 07:18 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
i need an example of JSR179 ((Location based Ser)implementation for CDC based device
By talk_to_vivekmishra in forum CDC and Personal ProfileReplies: 3Last Post: 12-30-2010, 10:07 AM -
Method access or field access
By carderne in forum New To JavaReplies: 2Last Post: 12-06-2008, 06:20 PM -
Help with access a database using Microsoft Access
By cachi in forum JDBCReplies: 1Last Post: 08-07-2007, 07:51 AM -
difference between code based security and role based security
By boy22 in forum New To JavaReplies: 1Last Post: 07-23-2007, 11:59 PM -
Create entity field SEQUENCE oracle
By Marcus in forum JDBCReplies: 1Last Post: 06-27-2007, 03:31 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks