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.
[ BUILD # : 200605050500 ] [ JDK VERSION : 1.6 ] [mustang b77] I should guess the general use case for generating named queries during Create entity from database is to generate named queries for some columns. NB currently supports only the - IMHO rare - cases, no named queries at all and named queries for all columns. Best regards, Georg
Changing to an enhancement as this was considered during development and it was decided that getting the user through the wizard for the most common cases should be simple and require the fewest clicks and that extra generated code could be deleted. Also added Jano to cc to comment on this.
I confirm Rochelle's comment. Adding "per column" choice would complicate the wizard. We understand that this choice might be needed and we would probably include that in later improvements. But not in the wizard. Probably in some kind of UI dedicated to keeping entities in-synch with DB.
Recording comment from Georg Schmid (sent by an email): --- Currently this feature would be needed more urgently, because all generated queries are on one line, and if a table has a lot of columns, I get very long lines (> 10,000 characters), that are hard to edit. --- This looks like a more serious problem. I think we should at least do some kind of formatting.
The fact that they are all on one line is filed separately as issue 73269 (which depends on java issue 72956). Maybe you should add netcat to the java issue and/or raise the priority of that one.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss