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: NetBeans IDE Dev (Build 100617-2dd683d50831) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: sj-nb: select entity in projecvt tree, have pk class opened and it contain duplicates of embeddable annotation Stacktrace: java.lang.AssertionError at org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsImpl$EmbeddableProvider.modifyObjects(EntityMappingsImpl.java:448) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.PersistentObjectManager.typesChanged(PersistentObjectManager.java:196) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$ClassIndexListenerImpl$3.call(AnnotationModelHelper.java:457) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$ClassIndexListenerImpl$3.call(AnnotationModelHelper.java:454) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runCallable(AnnotationModelHelper.java:255) at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.access$100(AnnotationModelHelper.java:85)
Created attachment 100157 [details] stacktrace
Got it once and wasn't able to reproduce and can't now. May be assertion can be just removed and only first object is used everywhere as it may be rare case for corrupted entities with duplicates.
it's hard to reproduce, no duplicates >P4. likely model shouldn't add duplicates instead of assertion removal but looks like in most cases there are no duplcates even with duplicate annotations
Created attachment 113619 [details] stacktrace Fixing erroneously generated code
Created attachment 113621 [details] stacktrace Generating JPA entities from database.
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.