mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Added @Index annotation to generate single-column indexes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user