Helma logo
helma.org » Home > docs > guide > mapping > Simple Property Mappings

Simple Property Mappings

The mappings for simple properties (versus properties that are objects containing further properties) simply map a property name of the specified object type to a column of the relational database table. The type of the property or column need not be specified. Helma does all necessary conversion when reading or writing a property value.

prop1 = DB_COLUMN_1
prop2 = DB_COLUMN_2
To prevent a property from being overwritten by the application it can be made readonly.
prop1.readonly = true
In a similar manner marking a property as private will prevent any corresponding collection or reference from being updated but still perform all necessary updates in the database.
prop1.private = true


Up: Object-Relational Mapping Guide
Previous: Basic Mappings Next: Object Reference Mappings

... comment


Page last modified on 2007-09-25 20:49 by tobi