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.

Bug 243193

Summary: Automatic generation of Bidirectional relationships not functional
Product: javaee Reporter: buddhika75
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description buddhika75 2014-03-23 19:09:10 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08
Comment 1 buddhika75 2014-03-23 19:09:31 UTC
Created attachment 146256 [details]
IDE log
Comment 2 buddhika75 2014-03-23 19:12:40 UTC
I created two entities with one to many relationship. Bill and BillItem.
Create a property Bill bill inside the Bill entity. Then the yellow bulb appears, but selecting Bidirectional Many to One relationship, although brings the usual dialog for creating a field in the Bill entity, do not create the annotation in BillItem entity and also do not create any field with annotations in the Bill entity.
Comment 3 buddhika75 2014-03-23 19:16:13 UTC
Correction:
Create a property Bill bill inside the BillItem entity(NOT Bill entity as erroneously written in previous comment).
Comment 4 Sergey Petrov 2014-07-25 11:04:10 UTC
either fixed(there was some fixes in the area) or some important steps are mixed/missed.

tried NewEntity and NewEntityItem,
add NewEntity bill to NewEntityItem.
invoke "create bidirectional manytoone hint
dialog appeared - press ok
now I have 
    @OneToMany(mappedBy = "bill")
    private List<NewEntityItem> newEntityItems;
in NewEntity.