Using @GenericGenerator in a package level annotation

后端 未结 1 938
遥遥无期
遥遥无期 2020-12-18 23:34

I\'m trying to create a @GenericGenerator annotation at the package level so it can be used by all the entities in the package.

1) I have a package-info.java class w

相关标签:
1条回答
  • 2020-12-19 00:00

    I know that this post may be old ... but I searched for the solution of that problem and I found a solution that worked for me. So I'll post it here in case it would be helpful for someone :

    I forgot to add the package level information in the cfg.xml

    Maybe you should add this line in your cfg.xml :

    <mapping package="com.sample.model"/>
    

    It worked for me :)

    0 讨论(0)
提交回复
热议问题