Hibernate DefaultEntityAliases raises NullPointerException
Yes there's a bug report for this exact situation with @Formula
annotation and nativeQuery
... you can add 5.2 as an affected version since it's reported only to 5.1
https://hibernate.atlassian.net/browse/HHH-7525