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 72143 - Set up the TopLink agent for the Java SE project
Summary: Set up the TopLink agent for the Java SE project
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 00:44 UTC by Rochelle Raccah
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2006-02-02 00:44:22 UTC
NB needs to *tell* the user they need to create a PU and set up persistence 
libraries since it is not done automatically in a J2SE project.  There is a 
warning to that effect in JavaEE projects, but not in JavaSE projects.

Further discussion with Pavel (separate into a separate issue if desired):
For implemeting and compiling POJOs you just need to create a library with 
those jar files. If you do create this library then you can use a wizard to 
create PU. To run the app you need to add the agent. Again, it would be useful 
if netbeans did it for you and it is doable by changing project properties.

I guess I should re evaluate the java se support... I will try to add a library 
and agent automagically."
Comment 1 Pavel Buzek 2006-02-02 04:04:13 UTC
I already fixed the problem that Entity wizard does not warn the user to create
a PU. It does it just like in web or ejb project.

The library, javaagent and explicitly adding classes to PU will be solved as
time permits.
Comment 2 Pavel Buzek 2006-02-04 04:31:16 UTC
changing summary to better reflect the remaining part of the problem
Comment 3 Martin Adamek 2006-03-14 09:50:35 UTC
I just checked in action and panel for creation of persistence library. Only
thing missing now is configuation of agent, but I hope it is just temporary
workaround for glassfish and it won't be needed later. I am decreasing to P3 as
most of the stuff is done now. Please change back if you don;t think so.
Comment 4 Martin Adamek 2006-05-10 06:18:31 UTC
Marking as fixed. Agent is not used anymore I hope.
Comment 5 Rochelle Raccah 2006-05-10 21:58:04 UTC
I just checked with Marina and she said:
" No. It's used. It's probably a confusion - javaee.jar is not needed any more"
Comment 6 martin_adamek 2007-07-25 07:37:25 UTC
Is there any document on using javaagent in JPA? Is it needed in all implementations or only in TopLink?
Comment 7 Andrei Badea 2008-01-15 12:15:58 UTC
Rochelle, if I understand correctly you are saying that NetBeans should setup the project to use the TopLink weaving
agent, right? But TopLink can be used in a J2SE environment without weaving. And given there is no user comment or vote
in this issue, I don't think this is a P3 defect. I plan to change this to a P3 enhancement.
Comment 8 mvatkina 2008-01-15 21:43:48 UTC
TopLink can be used in JavaSE without weaving, but it means that LAZY setting ToOne relationships is ignored. 

Weaving requirements are different for different JPA providers. You need to ask on the appropriate forums if they would
benefit of some special treatment from NB. 
Comment 9 Martin Balin 2016-07-07 08:56:25 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss