mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
43 lines
831 B
Java
43 lines
831 B
Java
package org.tests.inheritance.model;
|
|
|
|
import io.ebean.annotation.Cache;
|
|
import io.ebean.annotation.ChangeLog;
|
|
|
|
import javax.persistence.*;
|
|
|
|
@ChangeLog
|
|
@Entity
|
|
@Cache(enableQueryCache = true)
|
|
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
|
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING)
|
|
public class Configuration extends AbstractBaseClass {
|
|
@Id
|
|
@Column(name = "id")
|
|
private Integer id;
|
|
|
|
|
|
@ManyToOne
|
|
private Configurations configurations;
|
|
|
|
|
|
public Configuration() {
|
|
super();
|
|
}
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Configurations getConfigurations() {
|
|
return configurations;
|
|
}
|
|
|
|
public void setConfigurations(Configurations configurations) {
|
|
this.configurations = configurations;
|
|
}
|
|
}
|