You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
package com.example.demo.model;
|
|
|
|
import javax.persistence.*;
|
|
|
|
@Entity(name = "diancan_detail")
|
|
public class DiancanDetail {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private String zhuohao;
|
|
|
|
@Column(name = "menu_id")
|
|
private String menuId;
|
|
|
|
private String sum;
|
|
|
|
public String getMenuId() {
|
|
return menuId;
|
|
}
|
|
|
|
public void setMenuId(String menuId) {
|
|
this.menuId = menuId;
|
|
}
|
|
|
|
public String getSum() {
|
|
return sum;
|
|
}
|
|
|
|
public void setSum(String sum) {
|
|
this.sum = sum;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getZhuohao() {
|
|
return zhuohao;
|
|
}
|
|
|
|
public void setZhuohao(String zhuohao) {
|
|
this.zhuohao = zhuohao;
|
|
}
|
|
|
|
@OneToOne
|
|
@JoinColumn(name = "menu_id",referencedColumnName = "id",insertable = false,updatable = false)
|
|
private Menu menu;
|
|
|
|
public Menu getMenu() {
|
|
return menu;
|
|
}
|
|
|
|
public void setMenu(Menu menu) {
|
|
this.menu = menu;
|
|
}
|
|
}
|
|
|