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

add support for hibernate AnnotationConfiguration

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 M1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: