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();
      }

        Activity

        Hide
        sabob Bob Schellink added a comment -

        fix checked into trunk.

        Show
        sabob Bob Schellink added a comment - fix checked into trunk.
        Hide
        sabob Bob Schellink added a comment -

        fixed in 1.5-M1

        Show
        sabob Bob Schellink added a comment - fixed in 1.5-M1

          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:

              Development