Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-5375

Merge AnnotationConfiguration into Configuration

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0.Beta2
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      Move AnnotationConfiguration-added methods to Configuration and deprecate AnnotationConfiguration

      For example:

      public class AnnotationConfiguration extends Confinguration {
          ...
      
          public AnnotationConfiguration addAnnotatedClass(Class persistentClass) throws MappingException {
              ...
          }
      }
      

      becomes

      public class Configuration {
          ...
      
          public Configuration addAnnotatedClass(Class persistentClass) throws MappingException {
              ...
          }
      }
      
      @Deprecated
      public class AnnotationConfiguration extends Configuration {
          ...
      
          @Override
          public AnnotationConfiguration addAnnotatedClass(Class persistentClass) throws MappingException {
              return (AnnotationConfiguration) super.addAnnotatedClass( persistentClass );
          }
      }
      

      The end game being that we move all functionality to Configuration, but still leave AnnotationConfiguration still working (though deprecated) for the time being.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 42.8h
                  42.8h