package jannotate.domain;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Annotation {
	@Id
	int id;
	String name;
	String api;
	String use;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getApi() {
		return api;
	}
	public void setApi(String api) {
		this.api = api;
	}
	public String getUse() {
		return use;
	}
	public void setUse(String use) {
		this.use = use;
	}
}

@@ -35,28 +35,146 @@
 java
-x.persistence.Entity
+.lang.annotation.RetentionPolicy;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.EnumType;%0Aimport javax.persistence.Enumerated
 ;%0Aim
@@ -249,16 +249,29 @@
 int id;%0A
+%09String api;%0A
 %09String 
@@ -277,26 +277,41 @@
  name;%0A%09
-String api
+RetentionPolicy retention
 ;%0A%09Strin
@@ -582,24 +582,24 @@
 ring api) %7B%0A
-
 %09%09this.api =
@@ -599,32 +599,217 @@
 s.api = api;%0A%09%7D%0A
+%09%0A%09@Enumerated(EnumType.ORDINAL)%0A%09public RetentionPolicy getRetention() %7B%0A%09%09return retention;%0A%09%7D%0A%09public void setRetention(RetentionPolicy retention) %7B%0A%09%09this.retention = retention;%0A%09%7D%0A
 %09public String g

Add field for retention policy.