#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
2015-08-28 21:56:38 +12:00
parent 641ada001e
commit ccba5d08ef
14 changed files with 152 additions and 53 deletions
@@ -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")