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.

Bug 111638 - Need a friend access for org-netbeans-modules-profiler-j2ee module
Summary: Need a friend access for org-netbeans-modules-profiler-j2ee module
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: API
Depends on:
Blocks: 111347
  Show dependency tree
 
Reported: 2007-08-01 15:01 UTC by J Bachorik
Modified: 2007-08-06 08:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2007-08-01 15:01:15 UTC
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.
Comment 1 J Bachorik 2007-08-01 15:02:43 UTC
fixing dependency
Comment 2 Pavel Buzek 2007-08-02 06:37:08 UTC
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.
Comment 3 J Bachorik 2007-08-02 07:10:34 UTC
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
Comment 4 Andrei Badea 2007-08-02 14:03:09 UTC
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
Comment 5 Andrei Badea 2007-08-02 14:03:27 UTC
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.
Comment 6 Andrei Badea 2007-08-02 14:37:07 UTC
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
Comment 7 J Bachorik 2007-08-06 08:14:33 UTC
verified in dev build 200708060000