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.
Summary: | Automatic generation of Bidirectional relationships not functional | ||
---|---|---|---|
Product: | javaee | Reporter: | buddhika75 |
Component: | Persistence | Assignee: | 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
Created attachment 146256 [details]
IDE log
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. Correction: Create a property Bill bill inside the BillItem entity(NOT Bill entity as erroneously written in previous comment). 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. |