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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              hardy.ferentschik Hardy Ferentschik added a comment -

              You probably want to update the docs "Programmatic configuration" while working on it

              Show
              hardy.ferentschik Hardy Ferentschik added a comment - You probably want to update the docs "Programmatic configuration" while working on it
              Hide
              steve Steve Ebersole added a comment -

              Need to discuss implication of Environment.CHECK_NULLABILITY

              Show
              steve Steve Ebersole added a comment - Need to discuss implication of Environment.CHECK_NULLABILITY
              Hide
              steve Steve Ebersole added a comment -

              grr, wrong version

              Show
              steve Steve Ebersole added a comment - grr, wrong version
              Hide
              gbadner Gail Badner added a comment -

              HHH-5473 is a temporary fix for the CHECK_NULLABILITY issue for merge events; HHH-5474 is a longer-term improvement for persist, save, and merge events.

              Show
              gbadner Gail Badner added a comment - HHH-5473 is a temporary fix for the CHECK_NULLABILITY issue for merge events; HHH-5474 is a longer-term improvement for persist, save, and merge events.

                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

                      Development