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
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 :)