mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
80 lines
1.2 KiB
Java
80 lines
1.2 KiB
Java
package org.tests.model.tevent;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Version;
|
|
|
|
@Entity
|
|
public class TEventMany {
|
|
|
|
@Id
|
|
Long id;
|
|
|
|
String description;
|
|
|
|
@ManyToOne
|
|
TEventOne event;
|
|
|
|
int units;
|
|
|
|
double amount;
|
|
|
|
@Version
|
|
Long version;
|
|
|
|
public TEventMany(String description, int units, double amount) {
|
|
this.description = description;
|
|
this.units = units;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public TEventOne getEvent() {
|
|
return event;
|
|
}
|
|
|
|
public void setEvent(TEventOne event) {
|
|
this.event = event;
|
|
}
|
|
|
|
public int getUnits() {
|
|
return units;
|
|
}
|
|
|
|
public void setUnits(int units) {
|
|
this.units = units;
|
|
}
|
|
|
|
public double getAmount() {
|
|
return amount;
|
|
}
|
|
|
|
public void setAmount(double amount) {
|
|
this.amount = amount;
|
|
}
|
|
|
|
public Long getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(Long version) {
|
|
this.version = version;
|
|
}
|
|
}
|