Files
ebean/ebean-test/src/test/java/misc/migration/v1_1/ETable.java
T

48 lines
866 B
Java

package misc.migration.v1_1;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.History;
import io.ebean.annotation.Index;
import javax.persistence.*;
import java.util.List;
@Table(name = "`table`")
@Entity
@History // FIXME: remove later
public class ETable {
@Column(name = "`index`")
@DbComment("this is an other comment")
@Id
private String index;
@Column(name = "`from`")
@Index
private String from;
@Column(name = "`to`")
@Index(unique = true)
private String to;
@Column(name = "`varchar`")
@Index(unique = true)
private String varchar;
@Column(name = "`select`")
@Index(unique = true)
private String select;
@ManyToOne
@JoinColumn(name = "`foreign`")
ETable foreign;
@OneToMany(mappedBy = "foreign")
List<ETable> foreigns;
private String textfield;
@Index
private String textfield2;
}