fix hibernate warnings as described here: https://hibernate.atlassian.net/browse/HHH-9141