orderdetail.java

来自「 EasyDBO是一个超轻量级对象-关系映射(Object/Relation M」· Java 代码 · 共 52 行

JAVA
52
字号
package com.easyjf.dbo.example;

import com.easyjf.dbo.annotation.Table;
import com.easyjf.dbo.annotation.TableField;
import com.easyjf.dbo.annotation.OneToOne;
@Table(tableName="OrderDetail")
public class OrderDetail {
@TableField(name="cid")
private String id;
@OneToOne(column="orderId",tableName="",type=Order.class)	
private Order order;
@OneToOne(column="productId",tableName="",type=Product.class)	
private Product product;
@TableField(name="num")
private Integer num;
@TableField(name="price")
private java.math.BigDecimal price;
public String getId() {
	return id;
}
public void setId(String cid) {
	this.id = cid;
}

public Order getOrder() {
	return order;
}

public Integer getNum() {
	return num;
}
public void setNum(Integer num) {
	this.num = num;
}

public void setOrder(Order order) {
	this.order = order;
}
public java.math.BigDecimal getPrice() {
	return price;
}
public void setPrice(java.math.BigDecimal price) {
	this.price = price;
}
public Product getProduct() {
	return product;
}
public void setProduct(Product product) {
	this.product = product;
}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?