I am using Hibernate to map with MySQL
I have an entity class in which I have the methods mapped with columns in MySQL
The question is, if its possible that I do not map some of the method in that class with any column in SQL, as if i try not to map one of my method in entity class, it gives exception.
Here is the code snippet
@Column(name="skills")
public String getSkills() {
return skills;
}
public int getRowCount() {
return rowCount;
}
In this above code I have assigned getSkills with Column skills in SQL, but I do not want to assign getRowCount()
with any column in MySQL.
How could i achieve that (as in this above situation its giving exception, rowCount
is unknown)?