Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2559

Make HibernateAnnotationScanning more lenient in handling annotated entities

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • 7.1.0.Alpha1
    • None
    • None

    Description

      Frameworks such as Spring Roo may place @Entity annotations via bytecode manipulation (since compilation is impossible) on methods, as in:

      @Aspect
      @ajcPrivileged
      public class Owner_Roo_Entity
      {
       
      ....
        @Entity
        @ajcDeclareAnnotation(pattern="com.springsource.petclinic.domain.Owner", annotation="@Entity", kind="at_type")
        void ajc$declare_at_type_1()
        {
        }
      ....
      }
      

      This causes HibernateAnnotationScanner to crash with a CNFE on 'ajc$declare_at_type_1'.

      Solution: make HibernateAnnotationScanner ignore these

      Attachments

        Activity

          People

            marius.bogoevici Marius Bogoevici (Inactive)
            marius.bogoevici Marius Bogoevici (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: