title: Using @GenericGenerator in a package level annotation
body: <p>I'm trying to create a @GenericGenerator annotation at the package level so it can be used by all the entities in the package.</p>
  
  <p>1) I have a package-info.java class with the annotation:</p>
  
  <pre><code>@org.hibernate.annotations.GenericGenerator(name="unique_id", strategy="uuid")  
  package com.sample.model;
  </code></pre>
  
  <p>2) In that same package, I have an entity with the following attribute:</p>
  
  <pre><code>@Id  
  @GeneratedValue(generator="unique_id")  
  @Column(name="userid")  
  public String userID() {  
      return userID;  
  }  
  </code></pre>
  
  <p>This is resulting in an exception "Unknown Id.generator: unique_id". If I include the @GenericGenerator annotation in the entity class, it works fine.  However, I want to move this to the package level so I can reuse it in other entities.  </p>
  
  <p>Any ideas where the disconnect could be?   </p>
  
  <p>Thanks!</p>