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.
For all my public static final variables in @Entity classes, NetBeans 6 M10 complains: ----------------- Instance variable for a persistent attribute must not be public. Persistent attribute should be encapsulated (have getter and setter) ----------------- For compile-time safety and easy refactoring, all my @Entity classes declares: public static final String PROPERTY_NAME = "propertyName"; for each property. All these are marked with red exclamation and above description, but they are not persistent attributes.
Taking over
XXX.getBasic() should not return static properties, this issue is caused directly by this problem
Fixed. Checking in src/org/netbeans/modules/j2ee/persistenceapi/metadata/orm/annotation/AttributesHelper.java; /cvs/j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistenceapi/metadata/orm/annotation/AttributesHelper.java,v <-- AttributesHelper.java new revision: 1.4; previous revision: 1.3 done Checking in test/unit/src/org/netbeans/modules/j2ee/persistenceapi/metadata/orm/annotation/EntityMappingsMetadataModelTest.java; /cvs/j2ee/persistenceapi/test/unit/src/org/netbeans/modules/j2ee/persistenceapi/metadata/orm/annotation/EntityMappingsMetadataModelTest.java,v <-- EntityMappingsMetadataModelTest.java new revision: 1.6; previous revision: 1.5 done