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 - Automatic generation of Bidirectional relationships not functional
Summary: Automatic generation of Bidirectional relationships not functional
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 19:09 UTC by buddhika75
Modified: 2014-07-25 11:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (613.70 KB, text/plain)
2014-03-23 19:09 UTC, buddhika75
Details

Note You need to log in before you can comment on or make changes to this bug.
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.