Jackson bidirectional relationship (One-to-many) not working
问题 I'm using Spring(xml+annotations), Hibernate(annotations) in this web service project. The database relationship diagram, models, expected and actual output are given below, Database Table relationship Customer.java @Entity @Table(name="customer") public class Customer implements Serializable{ private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name="customer_id", unique=true, nullable =false) long customerId; @Column(name="name")