-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Why is property access preferred over field access?
PostPosted: Mon Feb 06, 2006 12:24 pm 
Regular
Regular

Joined: Tue Jan 03, 2006 11:43 am
Posts: 51
Location: Sweden
As the title says, what are the reasons that property access is preferred over field access?

/Carl


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 3:55 pm 
Beginner
Beginner

Joined: Mon Nov 21, 2005 6:38 pm
Posts: 30
Location: New Zealand
From Hibernate In Action

Quote:
Access to properties via accessor methods is considered best practice by the Hibernate
community. It provides an extra level of abstraction between the Java domain
model and the data model, beyond what is already provided by Hibernate. Properties
are more flexible; for example, property definitions may be overridden by
persistent subclasses.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.