|
When a property is annotated as follows:
@Nationalized
@Convert(converter = MyConverter.class)
@Column(name = "COLUMN", length = 40)
public String getMyColumn() {
return myColumn;
}
Hibernate will issue the following error at start when validating all entity configurations and annotation metadata.
Additionally when the column annotated with an AttributeConverter is a literal null value, the converter's convertToDatabaseColumn method is never invoked which if it were, could be used to store the actual value in the database as a non-null value such as a single-character space or other application specific values.
There is a test case in the attached (commented out however) that illustrates this behavior too.
|