Why would Hibernate ignore package-info.java?

后端 未结 4 2128
误落风尘
误落风尘 2021-01-06 16:29

I\'m trying to use Hibernate @TypeDef annotation on a package level, exactly as it is described in the Hibernate documentation. I\'m using Hibernate 3.6 and

4条回答
  •  难免孤独
    2021-01-06 17:06

    I believe this is due to a bug in Spring, where it doesn't scan the annotations in package-info, but only those on classes annotated with @Entity, @Embeddable, or @MappedSuperclass. See https://jira.springsource.org/browse/SPR-8589.

提交回复
热议问题