public static boolean isAtLeastVersion ( String required ) { String hibernateVersion = Hibernate . class . getPackage ( ) . getImplementationVersion ( ) ; if ( hibernateVersion != null ) { return GrailsVersion . isAtLeast ( hibernateVersion , required ) ; } else { return false ; } }
Check the current hibernate version