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: | Entity Class from database wizard - not working for views | ||
---|---|---|---|
Product: | javaee | Reporter: | hipoo <hipoo> |
Component: | Persistence | Assignee: | Dongmei Cao <dongmeic> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | abadea |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | DB shema and view of entity wizard |
Description
hipoo
2006-11-02 09:25:40 UTC
Created attachment 35723 [details]
DB shema and view of entity wizard
No, views are not supported in 5.5. Too old So? I think it's still a valid enhancement request.... Ok, let's reopen it in current version. But does anybody plan to make this enhancement? I opened this issue in 2006.. long time ago.. :( *** Issue 119930 has been marked as a duplicate of this issue. *** The problem with the views is that they do not have PKs. I think I can enhance it to generate entity classes for the views without @Id. That means the user needs to fix the entity classes manually afterwards. changeset: 79827:9f3540a4b1d8 With the above change/fix, entity classes will be generated for the views. But the generated entity classes will not have @Id and equals(), hashCode() and toString() overridden. The user needs to manually fix the @Id at least. checked in http://hg.netbeans.org/main/rev/9f3540a4b1d8. Please verify. Fixing manually @Id, no problem :) If you have a largre view this wizard save your time... But of course, mayby it is posible to pickup @id candidate in wizard? ;) |