Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cwichoski/ad86af065dd88725b86f to your computer and use it in GitHub Desktop.

Select an option

Save cwichoski/ad86af065dd88725b86f to your computer and use it in GitHub Desktop.
StringTemplate to generate CREATE TABLE LIKE to be used with EclipseLink HistoryPolicy feature when creation of tables is managed by EL.
CREATE TABLE <tableName>_audit (
LIKE <tableName> EXCLUDING ALL,
audit_date_start timestamp,
audit_date_end timestamp
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment