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.
The editor doesn't seem to be able to handle some valid annotation elements. When creating Java Persistence entities, the relationship annotations (@OneToMany, @ManyToMany, etc.) have a cascade element. Setting the cascade element in the relationship annotation causes a "cannot find symbol" error for the in the editor. For example in: @OneToMany(cascade=REMOVE, mappedBy="order") public Collection<LineItem> getLineItems() { return lineItems; } The first line causes an editor syntax error, with the following error in the popup: cannot find symbol symbol: variable REMOVE location: <source file name> From the EJB Persistence spec: "The cascade element specifies the set of cascadable operations that are propagated to the associated entity. The operations that are cascadable are defined by the CascadeType enum: public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH};"
Please attach your messages.lag
No response for a long time -> closing If it is still reproducible, please reopen the issue and provide requested information.