Added @Index annotation to generate single-column indexes

This commit is contained in:
Rick van Biljouw
2014-07-28 18:43:50 +01:00
parent 11a6cd04ea
commit 31f56621ff
8 changed files with 246 additions and 94 deletions
@@ -7,6 +7,7 @@ import javax.persistence.Id;
import javax.persistence.Table;
import com.avaje.ebean.annotation.EnumValue;
import com.avaje.ebean.annotation.Index;
@Entity
@Table(name = "e_basic")
@@ -28,6 +29,7 @@ public class EBasic {
Status status;
@Index
String name;
String description;