That is because you are not doing it properly according to JPA. See @javax.persistence.AttributeOverride