class SimpleHibernateEntityResolver extends SimpleEntityResolver implements EntityResolver {

    @Override
    public String resolve(Class<?> entityClass) {
        if (entityClass.isAnnotationPresent(Table.class)) {
            Table annotation = entityClass.getAnnotation(Table.class);
            if (!Strings.isNullOrEmpty(annotation.name())) {
                return annotation.name();
            }
        }
        if (entityClass.isAnnotationPresent(Entity.class)) {
            Entity annotation = entityClass.getAnnotation(Entity.class);
            if (!Strings.isNullOrEmpty(annotation.name())) {
                return annotation.name();
            }
        }
        return entityClass.getSimpleName();
    }

}