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 52994 - New CMP EJB cannot find DB schema
Summary: New CMP EJB cannot find DB schema
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: David Vancouvering
URL: http://j2ee.netbeans.org/nonav/docs/e...
Keywords:
Depends on:
Blocks: 52465
  Show dependency tree
 
Reported: 2005-01-05 15:05 UTC by _ rkubacki
Modified: 2008-12-24 04:28 UTC (History)
6 users (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 _ rkubacki 2005-01-05 15:05:39 UTC
dev build from Jan 4, JDK 5.0, Linux

I have my own set of projects: j2ee app + ejb prj
+ web prj. I created a DB schema file in the
topdirectory of ejb project and want to add CMP
EJB but can't see this schema in wizard. I can see
it if I move it deeper in a project structure.

Also actions available on tree nodes in this
wizard should be banned.
Comment 1 Rochelle Raccah 2005-01-06 00:19:41 UTC
Should xml files (other non-folder, non-dbschema files) also be hidden
from this view?
Comment 2 Martin Adamek 2005-02-17 09:09:51 UTC
Wizard scans for dbschema only in source roots and config files root
(this restriction is there because for imported projects with
different location of original and created project it's the only
information about original location). There is definitely
inconsistency between creating and selecting the dbschema. Should we
restrict creation only to source roots/config file root, or should we
try to scan all possible locations for dbschema?
Comment 3 Rochelle Raccah 2005-02-17 19:10:53 UTC
I think we should restrict the creation to those 2 places, but maybe
you should check with HIE to be sure.
Comment 4 jrojcek 2005-02-28 16:06:55 UTC
The current UI spec says that the user should be able to browse the schema file using the 
file chooser (which means it can be anywhere) in CMP Beans wizard. Would it work this 
way?

The other option is to open up a file browser (similar to Files window) that would allow the 
user to pick any file underneath the project.

Please let me know which one of those options seems more appropriate.
Comment 5 Rochelle Raccah 2005-02-28 18:25:45 UTC
Jano, if you check the current build, the spec is out of date, I 
think.  There is no longer a file chooser, just a drop down of 
schemas in the project.  Personally, I think we should restrict the 
list.
Comment 6 _ ludo 2005-02-28 18:31:39 UTC
agree
Comment 7 jrojcek 2005-03-02 11:55:59 UTC
Is there any problem with changing it to a file chooser? The other option is to limit the 
user to create dbschema files into a package which I think is quite strange. Especially if the 
generated schema files are put into the "conf" folder. Btw, is there any "best practice" 
where the schema files should go?

Please let me know whether it is possible change the combo into a filechooser.
Comment 8 Martin Adamek 2005-03-02 11:59:16 UTC
I see no problem.
Comment 9 Rochelle Raccah 2005-03-02 17:48:56 UTC
I see a problem - it was a file chooser before and someone redesigned 
the wizard so it was not.  Please find out who and why so we don't 
keep going back and forth =).

Also, please see related issue 53017. I suggest an alternative - that 
source and config root (by project logical view names) are shown in 
the wizard combo box and that dbschema's new template only allow 
creation in those locations.
Comment 10 Andrei Badea 2005-10-07 14:51:39 UTC
To rraccah: note that since the dbschema template is in the dbschema module, it
doesn't know almost anything about the project. therefore it doesn't know where
the project's configuration files root is located (let alone that the web
project doesn't have a config root, it only has a src/conf folder, which isn't
show under any name in the UI). The project sources can be obtained through
ProjectUtils, but you can't find out which sources are test sources (in case
don't want to show them).
Comment 11 jrojcek 2005-10-14 17:25:42 UTC
Is this still an issue? I think we offered a few UI solutions of this problem. Please let me know what's the 
current state.
Comment 12 Pavel Buzek 2005-11-15 03:26:31 UTC
The wizard for CMP can simply scan the project root for dbschema files in
addition to sources roots, no? This sounds like a simple change w/o UI impact
that solves the original problem.
Comment 13 Petr Blaha 2006-03-13 13:48:07 UTC
TM 5.0 -> TBD
Comment 14 Andrei Badea 2006-05-30 10:35:32 UTC
Considering issue 54091 which limits the places where the user can create a
dbschema file I think this is a WONTFIX. We want to encourage good practices,
thus we should not encourage dbschema files outside src/conf and the source roots.
Comment 15 Petr Jiricka 2006-07-28 14:12:49 UTC
Since creating db schema by hand is not the typical scenario, I think this is
not high priority, and suggest downgrading to P4.
Comment 16 Andrei Badea 2006-07-31 10:09:51 UTC
Downgrading to P4.
Comment 17 Jiri Prox 2007-09-17 20:31:00 UTC
Obsolete milestone, please reevaluate
Comment 18 Jayashri Visvanathan 2008-12-24 04:28:37 UTC
closing as WONTFIX per previous comments. CMP is no longer actively supported.