Better HN
topnewbestaskshowjobs
Log inSign up

nautic

3 karma · joined Dec 22, 2013 (12y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

Actually, the property is just a value of a type having a name. The property has the responsibility to hold and provide access to its value. It's definitely not the properties responsibility to know how it is being stored in a database, this is a so called 'mapping'. If you'd change the table name, you should not have to change the property, but the mapping. Another important aspect is readability.