mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#919 - io.ebean package initial
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package org.tests.model.survey;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
@Entity
|
||||
public class Question {
|
||||
@Id
|
||||
public Long id;
|
||||
|
||||
String name;
|
||||
|
||||
public Question(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "groupObjectId")
|
||||
private Group group;
|
||||
|
||||
private int sequenceNumber;
|
||||
|
||||
public void setSequenceNumber(int number) {
|
||||
this.sequenceNumber = number;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user