mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#368 - ENH: Enhance @Index to support multiple columns, unique flag and hence also be able to put on the class (annotation target TYPE)
This commit is contained in:
@@ -12,7 +12,9 @@ import javax.persistence.Version;
|
||||
import com.avaje.ebean.annotation.CacheStrategy;
|
||||
import com.avaje.ebean.annotation.ChangeLog;
|
||||
import com.avaje.ebean.annotation.CreatedTimestamp;
|
||||
import com.avaje.ebean.annotation.Index;
|
||||
|
||||
@Index(columnNames = {"last_name","first_name"})
|
||||
@ChangeLog
|
||||
@Entity
|
||||
@CacheStrategy(naturalKey="email")
|
||||
|
||||
Reference in New Issue
Block a user