Hibernate fails to load JPA 2.1 Converter when loaded with spring-boot and spring-data-jpa

前端 未结 2 1352
说谎
说谎 2020-12-30 03:42

I have a custom converter for UUID to transfer it to a string instead a binary:

package de.kaiserpfalzEdv.commons.jee.db;
import javax.persistence.AttributeC         


        
2条回答
  •  北海茫月
    2020-12-30 04:41

    Andy Wilkinson gave the correct answer. Reading the spec helps in a lot of times.

    JPA 2.1 Converters are not applied to @Id annotated attributes.

    Thank you Andy.

提交回复
热议问题