code: public static boolean isAtLeastVersion(String required) {
          String hibernateVersion = Hibernate.class.getPackage().getImplementationVersion();
          if (hibernateVersion != null) {
              return GrailsVersion.isAtLeast(hibernateVersion, required);
          } else {
              return false;
          }
      }
docs: Check the current hibernate version
  @param required The required version
  @return True if it is at least the given version