Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-633

Allow definition of annotations at package-level in package-info.java

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0.CR1
    • Fix Version/s: 5.1.0.Final
    • Component/s: engine, mapper-pojo
    • Labels:
      None
    • Environment:
      Hibernate 3.6, Oracle 10g
    • Suitable for new contributors:
      Yes, likely

      Description

      Currently, it is not possible to define package-level annotations, for example a set of analyzer definitions that are shared by all classes in a package. Having this feature would really aid in code organization, allowing global search-related annotations to be separate from model classes. The situation right now, where an AnalyzerDef annotation defined in one model class is also referencable from another model class, is not intuitive. Please see the thread below:

      https://forum.hibernate.org/viewtopic.php?f=9&t=1008145&p=2438323#p2438323

        Attachments

          Activity

            People

            • Assignee:
              davided Davide D'Alto
              Reporter:
              mrrubato Michael Mogley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: