Quote:
what is the purpose of formula?
From Hibernate documentation at
http://www.hibernate.org/hib_docs/v3/re ... n-property:
Quote:
formula (optional): an SQL expression that defines the value for a computed property. Computed properties do not have a column mapping of their own.
I think this could be used to get rid of the "Repeated column mapping", though I have never had use for it myself. Try it and post a message telling us if it worked or not.
Quote:
so am i supposed to put formula on the property or many-to-one?
<many-to-one> since that is the one you have insert="false" and update="false"