public class Book { private String bid; private String bname; private double price; private String author; private String image; private String cid; private Category category=new Category();//在这里实现关系依赖