I have to properties that are mapped to one column
<class name="Account" table="list">
...
<property name="creationDate" type="jodaTime" column="accdatetm" insert="false" update="false"/>
<property name="anotherDate" type="jodaTime" column="accdatetm" insert="false" update="false"/>
creationDate have setter and getter in Account class
anotherDate haven’t setter and getter in Account class
I got error
PropertyNotFoundException: Could not find a getter for anotherDate
What can I do if I don’t want have getter and setter for property, but want have a property?
Change your mind, it is better to use a getter and setter for encapsulation and to maintain bean standards.