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.
NBI nightly build04171200: Created a web project with visual web framework. Created a new file| Persistence/Entity Classes from Database and press Next The daba source selection only had jdbc/sample but there were two database connection shown in Runtime|Database, sample and travel(from visual web).
The dialog only displays data sources, not database connections. If you expand the combo box, you will find an Add Datasource item, which will allow you to create a data source.
Marking as invalid.
Hmm.. May be the action name is kind of misleading. Shouldn't it say "New Entity Classes from Datasource" rather than "New Entity Classes from Database" Another point, how do I create the persistence unit with out datasource (JNDI name), directly connection parameters, since both are supported by JPA.
reopen the issue as there is still some questions.
Andrei, another question I have is, creating the persistence unit based on datasource is great for a web application. But if I have to use the Entity class and corresponding persistence unit (PU) for a Java SE application, then "datasource" based PU may be problematic. How do I create a PU based on connection parameters only (that is without hand coding)? Thanks.
Never mind. Further exploration shows, it works perfectly as I wanted and I like it (Connection for Java SE application and datasource for Web application. Cool)
Re. desc4: no, I don't think the wizard should be called "... from Datasource". If we did that we would end up with two wizards ("from Database", "from Datasource"). Instead we might want to extend the current wizard to display database connections along with the data sources even in the web and Java EE projects where it currently only displays data sources. But that's another story, and not for 6.0.