This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For instance: cars --------------- ID Name drivers --------------- ID Name CarID entity fields: Car --------------- @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "ID", nullable = false) private Integer id; @Basic(optional = false) @Column(name = "Name", nullable = false, length = 45) private String name; @OneToMany(cascade = CascadeType.ALL, mappedBy = "carID") private List<Driver> driverList; Driver --------------- @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "ID", nullable = false) private Integer id; @Basic(optional = false) @Column(name = "Name", nullable = false, length = 45) private String name; @JoinColumn(name = "CarID", referencedColumnName = "ID", nullable = false) @ManyToOne(optional = false) private Car carID; private Car carID should be "car" and if there were multiple many to one relations in the entity. it should be: car, car1, car2 .... Driver d = new Driver("Michael Schumacher"); d.car = new Car("Ferrari");
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss