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 101504 - New Entity Classes from Database: Data Source does not list all data source in Runtime
Summary: New Entity Classes from Database: Data Source does not list all data source i...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 04:44 UTC by _ hlu
Modified: 2007-04-19 09:53 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 _ hlu 2007-04-18 04:44:46 UTC
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).
Comment 1 Andrei Badea 2007-04-18 15:59:44 UTC
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.
Comment 2 Andrei Badea 2007-04-18 16:06:00 UTC
Marking as invalid.
Comment 3 Winston Prakash 2007-04-18 19:55:03 UTC
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.

 
Comment 4 _ hlu 2007-04-18 22:57:47 UTC
reopen the issue as there is still some questions.
Comment 5 Winston Prakash 2007-04-19 00:18:40 UTC
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.
Comment 6 Winston Prakash 2007-04-19 00:43:33 UTC
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)
Comment 7 Andrei Badea 2007-04-19 09:53:21 UTC
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.