#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:
Robin Bygrave committed 2015-08-28 21:56:38 +12:00
1 parent 641ada001e
commit ccba5d08ef
14 files changed
+152 -53

No files matched your search

@@ -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")