In jpa (>= 2.1) how can you create an AttributeConverter for an attribute annotated with @Id?
Unfortunately, it seems like Hibernate does not allow it in the following code: org.hibernate.cfg.annotations.SimpleValueBinder#applyAttributeConverter
if ( property.isAnnotationPresent( Id.class ) ) {
LOG.debugf( "Skipping AttributeConverter checks for Id attribute [%s]", property.getName() );
return;
}
Is there any way to circumvent this?