2020
10-30
10-30
Hibernate双向一对一映射关系配置代码实例
1、外键映射1.1、实体类packagecom.yl.bean;importjava.io.Serializable;/***公民实体类*/publicclassPersonimplementsSerializable{privateIntegerid;privateStringname;privatePersonCardcard;publicPerson(){}publicPerson(Integerid,Stringname,PersonCardcard){this.id=id;this.name=name;this.card=card;}publicIntegergetId(){returnid;}publicvo...
继续阅读 >