title: Annotations for Hibernate lookup table/type?
body: <p>I am trying to use Hibernate with <code>hbm2ddl.auto</code> set to <code>validate</code> so that Hibernate must respect my DB schema, instead of auto-generating tables around my Java classes.</p>
  
  <p>A lot of my tables are so-called "lookup" or "reference" tables, that essentially consist of <code>id</code>, <code>name</code> and <code>tag</code> fields:</p>
  
  <pre><code>credit_card_types
      credit_card_type_id           Ex: "12"
      credit_card_type_name         Ex: "Visa"
      credit_card_type_tag          Ex: "VISA"
  
  payment_types
      payment_type_id               Ex: "2"
      payment_type_name             Ex: "Google Checkout"
      payment_type_tag              EX: "GOOGLE_CHECKOUT"
  
  etc.
  </code></pre>
  
  <p>I'd like to model these as follows:</p>
  
  <pre><code>public class BaseLookup {
      private Long id;
      private String name;
      private String tag;
  
      // ...getters, setters and ctors, etc.
  }
  
  public class CreditCardTypes extends BaseLookup {
      // .. perhaps a few other fields, methods, etc...
  }
  
  public class PaymentTypes extends BaseLookup {
      // .. perhaps a few other fields, methods, etc...
  }
  </code></pre>
  
  <p>The problem is I don't want Hibernate to search for (validate against) a <code>lookups</code> table: I want it to validate aginst 2 lookup tables called <code>credit_card_types</code> and <code>payment_types</code> respectively.</p>
  
  <p><strong>What annotations/configs do I need to allow this type of Java inheritance but to only create my 2 lookup tables (and not 3)?</strong> Thanks in advance!</p>