Uploaded image for project: 'Click'
  1. Click
  2. CLK-355

add support for hibernate AnnotationConfiguration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5 M1
    • None
    • None

    Description

      As outlined by Jean-Francois add a createConfiguration method that detects AnnotationConfiguration on the classpath:

      try
      {
      // Try to instantiate AnnotationConfiguration by reflection
      Class clazz = Class.forName( "org.hibernate.cfg.AnnotationConfiguration");
      Configuration config = (Configuration) clazz.newInstance();
      return config;
      }
      catch (Exception e)
      {
      // Fall back to normal configuration
      return new Configuration();
      }

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: