Reputation: 573
I have an application that was mapped using fields, so after reading about it I have decied to move to methods. However now I have a problem where in one of my abstract class that has method getFullName show an error that says
Repeated column in mapping for entity: com.bomahabo.flow.domain.project.shot.ShotComponent column: fullName (should be mapped with insert="false" update="false")
the things is that this methods is not mapped and it shouldnt be since it is a normal method. Which brings me to another thing. If I use methods as mapping does that mean that hibernate will attempt to map any get method that returns a String?
Upvotes: 0
Views: 607
Reputation: 6157
You need to set that field as transient. If you are using attributes then you are looking for @Transient
Upvotes: 1