4.1 一对一 4.1.1 表对应关系, 一个订单对应一个用户 4.1.2 实体对应关系 public class Order { private int id; private Date ordertime; private double total; //代表当前订单属于哪个用户 private User user; } public class User { private int id; private String username; private String password;…