mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
34 lines
550 B
Java
34 lines
550 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
import com.avaje.ebean.annotation.Sql;
|
|
|
|
@Entity
|
|
@Sql
|
|
public class MyAdHoc {
|
|
|
|
@ManyToOne
|
|
Order order;
|
|
|
|
int detailCount;
|
|
|
|
public Order getOrder() {
|
|
return order;
|
|
}
|
|
|
|
public void setOrder(Order order) {
|
|
this.order = order;
|
|
}
|
|
|
|
public int getDetailCount() {
|
|
return detailCount;
|
|
}
|
|
|
|
public void setDetailCount(int detailCount) {
|
|
this.detailCount = detailCount;
|
|
}
|
|
|
|
}
|