2020
10-30
10-30
Hibernate双向多对多映射关系配置代码实例
1、实体类packagecom.yl.bean;importjava.io.Serializable;importjava.util.Set;/***商品实体类*/publicclassGoodsimplementsSerializable{privateIntegerid;//商品idprivateStringgoodsName;//商品名privateDoubleprice;//商品价格privateStringremark;//备注privateSet<GoodsOrder>orderSet;//商品所属订单publicGoods(){}publicIntegergetId(){returnid;}publicvoidsetId...
继续阅读 >