package io.pivotal.cdm.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class SanitizationScript {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	long id;

	private String script;

	protected SanitizationScript() {
	}

	public SanitizationScript(final String script) {
		this.setScript(script);
	}

	public String getScript() {
		return script;
	}

	public void setScript(String script) {
		this.script = script;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
}

@@ -217,60 +217,40 @@
 %7B%0A%0A%09
-@Id%0A%09@GeneratedValue(
+final 
 st
-r
 at
-egy = GenerationType.AUTO)
+ic long ID = 1;%0A%09%0A%09@Id
 %0A%09lo
@@ -254,16 +254,21 @@
 %09long id
+ = ID
 ;%0A%0A%09priv

Fix bug saving script more than once