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.
Inability to access JPA supporting infrastructure blocks our P2 issue #111347 Plz, add the aforementioned module as a friend to "Java Persistence API Support" and "Java Persistence API Support API" modules.
fixing dependency
Why is Java Persistence API Support needed? Is not the Java Persistence API Support API module enough? I think there is no problem with adding a friend for the later which already has friends like j2eseproject and websvc, but Java Persistence API Support has things that should not be exposed too much, IMO. Just my $.02.
well, i don't insist on Java Persistence API as long as i can get all project's EntityMappingsMetadata right now i use code like this: Persistence persistence = PersistenceMetadata.getDefault().getRoot(scope.getPersistenceXml()); for(PersistenceUnit pu : persistence.getPersistenceUnit()) { metadata.add(scope.getEntityMappingsModel(pu.getName())); } i really couldn't find any other means to iterate through all the perssistence units defined within a project
Added friend to j2ee/persistenceapi. Checking in nbproject/project.xml; /cvs/j2ee/persistenceapi/nbproject/project.xml,v <-- project.xml new revision: 1.15; previous revision: 1.14 done
I expected PersistenceMetadata to be the reason. It really belongs in j2ee/persistenceapi of course and it would have been better if we had moved it when implementing the API for the form editor.
Probably too late to move PersistenceMetadata at this point. There are no interface, just schema2beans implementation classes, and 1) I don't want to spend time generating the interfaces. 2) I don't want to put ugly interfaces a la J2EE DD API in a module which is otherwise quite clean. Filed issue 111748. Jardo, please refrain from using any classes in j2ee/persistence other than PersistenceMetadata and the classes you can obtain from it. Checking in nbproject/project.xml; /cvs/j2ee/persistence/nbproject/project.xml,v <-- project.xml new revision: 1.30; previous revision: 1.29 done
verified in dev build 200708060000