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.
Summary: | Using Entity Class wizard without creating PU leads to missing JPA interface errors | ||
---|---|---|---|
Product: | javaee | Reporter: | jlaskowski <jlaskowski> |
Component: | Persistence | Assignee: | Andrei Badea <abadea> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
jlaskowski
2008-03-23 12:58:24 UTC
The Entity Class wizard is supposed to do just that -- create an entity class. Sorry. You can easily add the persistence library by right-clicking the Libraries node and choosing the Add Library action. Entity Class wizard is to create a class with JPA annotations. Why can't the wizard add a JPA provider library regardless of whether persistence.xml is created or not? Let the JPA library be added every time *or* don't let the user go on unless a persistence.xml file exists. One or another - the current solution is unacceptable from a user's point of view. Adding the library without the user's explicit request is not a good idea -- the user might want to use another JPA library than TopLink. Not letting the user go on without a persistence.xml file is not good either, it would prevent the user from creating an entity class in a library of entity classes (for which persistence.xml is provided separately). An idea could be to give the user two options: - to create persistence.xml (and add a persistence library to the classpath) - to add the library only But this requires a non-trivial UI change, so it is not for 6.1. And I can't consider it a P3 issue, since the workaround is trivial. I think this may be a duplicate of 75948, which is a P3 defect and has multiple duplicates as well. Right, thanks. *** This issue has been marked as a duplicate of 75948 *** |