I’d like to modify a database field (
Char) , as a java
String field, via
@Column, and a setter method.
But the Column is already used , to create an object field, via
@JoinColumn. So, when I try to create the
String field with
@Column I get a
org.hibernate.MappingException: Repeated column in mapping for entity: ... (should be mapped with insert="false" update="false") error.
Is there a solution? I’d expect it’d be possible to use the same column for different things?