title: How to configure EclipseLink history policy for a lot of entities?
body: <p>I want to use EclipseLink history policy for tracking history of changes over entity but I have more than 50 entity in my project. Do I have to implement Customizer class per entity like example shown below or can I use more generic method.</p>
  
  <p>Any documentations or suggestions would be appreciated.</p>
  
  <p><em>HumanResource_EmployeeCustomizer.java</em></p>
  
  <pre><code>public class HumanResource_EmployeeCustomizer implements DescriptorCustomizer {
  
      @Override
      public void customize(ClassDescriptor cd) throws Exception {
          HistoryPolicy policy = new HistoryPolicy();
          policy.addStartFieldName("START");
          policy.addEndFieldName("END");
          policy.addHistoryTableName("EMPLOYEE", "HUMANRESOURCE_EMPLOYEE_");
          cd.setHistoryPolicy(policy);
      }
  }
  </code></pre>
  
  <p><em>HumanResource_JobDetailCustomizer.java</em></p>
  
  <pre><code>public class HumanResource_JobDetailCustomizer implements DescriptorCustomizer {
  
      @Override
      public void customize(ClassDescriptor cd) throws Exception {
          HistoryPolicy policy = new HistoryPolicy();
          policy.addStartFieldName("START");
          policy.addEndFieldName("END");
          policy.addHistoryTableName("JOBDETAIL", "HUMANRESOURCE_JOBDETAIL_");
          cd.setHistoryPolicy(policy);
      }
  
  }
  </code></pre>