Why would Hibernate ignore package-info.java?

后端 未结 4 2140
误落风尘
误落风尘 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:17

    If using JPA, using

    com.foo.bar.thepackage
    in the persistence.xml also should work.

提交回复
热议问题