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.
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."
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.
changing summary to better reflect the remaining part of the problem
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.
Marking as fixed. Agent is not used anymore I hope.
I just checked with Marina and she said: " No. It's used. It's probably a confusion - javaee.jar is not needed any more"
Is there any document on using javaagent in JPA? Is it needed in all implementations or only in TopLink?
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.
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.
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