The message should also log the annotation class and not only the annotation value which it tries to retrieve. This makes for a more descriptive error message. See also https://forum.hibernate.org/viewtopic.php?f=9&t=1024487&start=0