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 54091 - Enable nbproject directory where dbschema will be created
Summary: Enable nbproject directory where dbschema will be created
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 15:23 UTC by Petr Blaha
Modified: 2013-08-01 12:53 UTC (History)
2 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 Petr Blaha 2005-01-27 15:23:51 UTC
[Build 20050126]
In dbschema wizard on panel Name and location user
can specify where the schema will be created. In
Browse Folders panel are listed test, nbproject
and src directories. 
User shouldn't create dbschema in nbproject
directory. Please, disable this directory.
Comment 1 Pavel Flaska 2005-03-04 14:16:11 UTC
My comments:
i) Is there really need to limit user when he selects directory? -- In
my opinion it is up to user to select proper directory.
ii) As far as I know there is no way how to disable this directory in
dbschema wizard. The 'Name and location' panel comes from openide, you
can see the same panel when you creating new java file etc. I do not
see how to handle this

Closing as WONTFIX. Please reopen, if you disagree with my previous
comments.
Comment 2 Petr Blaha 2005-03-04 14:37:00 UTC
I disagree. My comments are below:
1) If user creates dbschema in nbproject directory, then creates
Entity bean from dbschema the wizard doesn't display dbschema in combo box
2) On java file wizard panel user can't select directory nbproject, he
is able to select location from combo box. The combo box contains only
Source packages and Test packages
3) I hope that IDE should suggest to user that nbproject directory is
not good choice for dbschema.
User should not add any sources in nbproject directory.
Comment 3 Pavel Flaska 2005-03-07 10:28:32 UTC
You are right with 'New Java File', these files are created in
packages. But for example XML file can be created everywhere in
project. Should only src root directory be enabled for dbschema?
Comment 4 Petr Blaha 2005-03-07 10:31:00 UTC
From user's point of view, YES.
Comment 5 Pavel Flaska 2005-03-23 12:56:34 UTC
If we want to fix this issue, we have to redesign the TargetPanel. Currently, we
use org.netbeans.modules.project.uiSimpleTargetChooserPanel which does not
support such a functionality. The panel has to be designed by db module itself.
This seems to be big change and there is not enough time to fix it for 4.1.
Changing target milestone to 'future'.

The same change is needed for fixing issue #52465.
Comment 6 Petr Jiricka 2006-07-28 16:54:14 UTC
Since creating db schema by hand is not the typical scenario, I think this is
not high priority. I suggest downgrading to P4.
Comment 7 Andrei Badea 2006-07-31 10:09:32 UTC
Downgrading to P4.
Comment 8 Lukasz Grela 2006-09-11 14:23:08 UTC
because netbeans can recognize dbschema files only when are placed under
configuration and source directory so only these directories can be considered
as destination directories for dbschema files.
Comment 9 Jiri Rechtacek 2009-07-01 07:57:23 UTC
Reassigned to new owner.