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.
When I use the wizard "Entity Class from database" - I cna't see my DB views. There are only tables, but I must do som entity classes from some views. Is it a bug?
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? ;)