The property name of hibernate entity class cannot be key
private String key;
key is the keyword of hibernate