全局设置Hibernate访问策略?

According to the Hibernate documentation, the placement of the @Id annotation determines how Hibernate will access the entity (field or accessors)

作为JPA提供者,Hibernate可以同时检查实体属性(实例字段)或访问器(实例属性)。默认情况下,@ Id注释的位置提供默认的访问策略。当放在一个字段上时,Hibernate将假定基于字段的访问。将Hibernate放在标识符getter上,将使用基于属性的访问。

Is it possible to define this globally via a property (To avoid having to place a @Access(AccessType.FIELD) on each entity or embeddable)?

I found this related question, but that is for Spring Boot specifically.

评论