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 270741 - Generated controller updated the wrong relationship
Summary: Generated controller updated the wrong relationship
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 19:20 UTC by javydreamercsw
Modified: 2017-05-25 20:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (433.07 KB, text/plain)
2017-05-25 19:20 UTC, javydreamercsw
Details
Database Script (88.98 KB, text/plain)
2017-05-25 19:23 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2017-05-25 19:20:47 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_121
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.121-b13

Reproducibility: Happens every time

STEPS:
  * On MySQL server import the attached schema.
  * Create Entities and COntrollers from Database.

ACTUAL:
  Notification controller uses NotificationList for both author and targetUser when it should use NotificationList1 for author.

EXPECTED:
  Uses the correct ones.
Comment 1 javydreamercsw 2017-05-25 19:20:51 UTC
Created attachment 164407 [details]
IDE log
Comment 2 javydreamercsw 2017-05-25 19:23:42 UTC
Created attachment 164408 [details]
Database Script