mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
35 lines
617 B
Java
35 lines
617 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
import com.avaje.ebean.annotation.CacheStrategy;
|
|
|
|
@CacheStrategy(useBeanCache=true)
|
|
@Entity
|
|
public class SubSection extends BasicDomain {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@ManyToOne
|
|
private Section section;
|
|
|
|
private String title;
|
|
|
|
public SubSection() {
|
|
}
|
|
|
|
public SubSection(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
}
|