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 generating entity class from database, a slight change in the named queries formatting would make it much easier to work with them in the editor. In particular adding/deleting queries. The idea is to always have "@NamedQuery" at the start of a line (except for the first one. Then it is simpler to add or delete a query. Note that the number of lines is usually the same. For example, instead of: @NamedQueries({@NamedQuery(name = "ChartHasEvent.findAll", query = "SELECT c FROM ChartHasEvent c"), @NamedQuery(name = "ChartHasEvent.findByChartId", query = "SELECT c FROM ChartHasEvent c WHERE c.chartHasEventPK.chartId = :chartId"), @NamedQuery(name = "ChartHasEvent.findByEventId", query = "SELECT c FROM ChartHasEvent c WHERE c.chartHasEventPK.eventId = :eventId")}) format it this way: @NamedQueries({@NamedQuery(name = "ChartHasEvent.findAll", query = "SELECT c FROM ChartHasEvent c"), @NamedQuery(name = "ChartHasEvent.findByChartId", query = "SELECT c FROM ChartHasEvent c WHERE c.chartHasEventPK.chartId = :chartId"), @NamedQuery(name = "ChartHasEvent.findByEventId", query = "SELECT c FROM ChartHasEvent c WHERE c.chartHasEventPK.eventId = :eventId")})
Oops, make component persistence.
it's high visile for named queries, but in real the issue is about annotations formatting, i.e. new line for each nested and may be new line for each parameter. *** This issue has been marked as a duplicate of 124102 ***