Skip to content

Instantly share code, notes, and snippets.

@iromu
Created May 6, 2013 19:12
Show Gist options
  • Save iromu/5527350 to your computer and use it in GitHub Desktop.
Save iromu/5527350 to your computer and use it in GitHub Desktop.
public class AnimalCustomizer implements DescriptorCustomizer {
@Override
public void customize(ClassDescriptor cd) throws Exception {
HistoryPolicy policy = new HistoryPolicy();
policy.addStartFieldName("START");
policy.addEndFieldName("END");
policy.addHistoryTableName("ANIMAL","ANIMAL_HISTORY");
policy.setShouldHandleWrites(true);
cd.setHistoryPolicy(policy);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment