package com.showka.common;

import javax.persistence.Column;
import javax.persistence.Version;

public abstract class AbstractEntity {
	@Version
	@Column(nullable = false)
	private int version = -666;

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
}

@@ -21,16 +21,40 @@
 ommon;%0A%0A
+import java.util.Date;%0A%0A
 import j
@@ -107,17 +107,308 @@
 nce.
-Version;%0A
+MappedSuperclass;%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;%0Aimport javax.persistence.Version;%0A%0Aimport org.apache.commons.lang3.builder.ReflectionToStringBuilder;%0A%0Aimport lombok.Getter;%0Aimport lombok.Setter;%0A%0A/**%0A * Entity Base.%0A *%0A */%0A@MappedSuperclass%0A@Getter%0A@Setter
 %0Apub
@@ -442,16 +442,39 @@
 Entity %7B
+%0A%0A%09/**%0A%09 * version%0A%09 */
 %0A%09@Versi
@@ -485,16 +485,34 @@
 @Column(
+name = %22version%22, 
 nullable
@@ -530,19 +530,23 @@
 private 
-i
+I
 nt
+eger
  version
@@ -560,127 +560,1179 @@
 ;%0A%0A%09
-public int getVersion() %7B%0A%09%09return this.version;%0A%09%7D%0A%0A%09public void setVersion(int version) %7B%0A%09%09this.version = version
+/**%0A%09 * id%0A%09 */%0A%09@Column(name = %22id%22, unique = true, nullable = false, length = 255)%0A%09private String id;%0A%0A%09/**%0A%09 * create_user_id%0A%09 */%0A%09@Column(name = %22create_user_id%22, unique = false, nullable = false, length = 255)%0A%09private String create_user_id;%0A%0A%09/**%0A%09 * create_user_name%0A%09 */%0A%09@Column(name = %22create_user_name%22, unique = false, nullable = false, length = 255)%0A%09private String create_user_name;%0A%0A%09/**%0A%09 * create_timestamp%0A%09 */%0A%09@Temporal(TemporalType.TIMESTAMP)%0A%09@Column(name = %22create_timestamp%22, unique = false, nullable = false, length = 255)%0A%09private Date create_timestamp;%0A%0A%09/**%0A%09 * update_user_id%0A%09 */%0A%09@Column(name = %22update_user_id%22, unique = false, nullable = false, length = 255)%0A%09private String update_user_id;%0A%0A%09/**%0A%09 * update_user_name%0A%09 */%0A%09@Column(name = %22update_user_name%22, unique = false, nullable = false, length = 255)%0A%09private String update_user_name;%0A%0A%09/**%0A%09 * update_timestamp%0A%09 */%0A%09@Temporal(TemporalType.TIMESTAMP)%0A%09@Column(name = %22update_timestamp%22, unique = false, nullable = false, length = 255)%0A%09private Date update_timestamp;%0A%0A%09/**%0A%09 * %E6%96%87%E5%AD%97%E5%88%97%E5%8C%96%0A%09 */%0A%09@Override%0A%09public String toString() %7B%0A%09%09return ReflectionToStringBuilder.toString(this)
 ;%0A%09%7D%0A
+%0A
 %7D%0A

add base colulmns