NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Glenn Holmer Posted via mailing list.
|
Posted: Mon Dec 22, 2008 8:58 pm Post subject: recapturing db schema |
|
|
I have a database from which I've extracted a number of entity classes
in a NetBeans EJB project (part of an Enterprise project). Now I've
added a table and I want to create an entity class for it. So I
right-click the EJB project and select "New / Entity Class from
Database". Naturally, the new table doesn't appear under "Available
Tables" (listbox on left). So I back out of that dialog, right-click
the schema in Configuration Files (public_dbname-ejb.dbschema) and
select "recapture schema from database".
Now I go back into "New / Entity Class from Database", and there
are /no/ tables in the listbox on the left. What went wrong? Am I
misunderstanding how to use this tool?
--
____________________________________________________________
Glenn Holmer address-removed
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601 |
|
| Back to top |
|
 |
Rochelle Raccah Posted via mailing list.
|
Posted: Mon Dec 22, 2008 10:03 pm Post subject: recapturing db schema |
|
|
It should work, I think. Try to restart the IDE in between. There is
some caching of the schema objects and restarting might help. If that
fixes it, you can file a bug.
Rochelle
Glenn Holmer wrote:
| Quote: | I have a database from which I've extracted a number of entity classes
in a NetBeans EJB project (part of an Enterprise project). Now I've
added a table and I want to create an entity class for it. So I
right-click the EJB project and select "New / Entity Class from
Database". Naturally, the new table doesn't appear under "Available
Tables" (listbox on left). So I back out of that dialog, right-click
the schema in Configuration Files (public_dbname-ejb.dbschema) and
select "recapture schema from database".
Now I go back into "New / Entity Class from Database", and there
are /no/ tables in the listbox on the left. What went wrong? Am I
misunderstanding how to use this tool?
|
|
|
| Back to top |
|
 |
Glenn Holmer Posted via mailing list.
|
Posted: Mon Dec 22, 2008 10:08 pm Post subject: recapturing db schema |
|
|
On Mon, 2008-12-22 at 14:03 -0800, Rochelle Raccah wrote:
| Quote: | It should work, I think. Try to restart the IDE in between. There is
some caching of the schema objects and restarting might help. If that
fixes it, you can file a bug.
|
Been there, done that. Also deleted contents of var/cache in userdir.
There are no tables to choose from unless I revert the schema from
Subversion. I've had this problem before, but can't remember how I got
around it. NetBeans 6.5, Postgres 8.3.
--
____________________________________________________________
Glenn Holmer address-removed
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601 |
|
| Back to top |
|
 |
Rochelle Raccah Posted via mailing list.
|
Posted: Mon Dec 22, 2008 10:23 pm Post subject: recapturing db schema |
|
|
Hmmm.. then it might be a general postgres error with dbschema. A quick
search shows these (among others):
http://www.netbeans.org/issues/show_bug.cgi?id=152739
http://www.netbeans.org/issues/show_bug.cgi?id=146940
http://www.netbeans.org/issues/show_bug.cgi?id=123845
Hope that helps.
Rochelle
Glenn Holmer wrote:
| Quote: | On Mon, 2008-12-22 at 14:03 -0800, Rochelle Raccah wrote:
| Quote: | It should work, I think. Try to restart the IDE in between. There is
some caching of the schema objects and restarting might help. If that
fixes it, you can file a bug.
|
Been there, done that. Also deleted contents of var/cache in userdir.
There are no tables to choose from unless I revert the schema from
Subversion. I've had this problem before, but can't remember how I got
around it. NetBeans 6.5, Postgres 8.3.
|
|
|
| Back to top |
|
 |
gurugv
Joined: 15 Nov 2009 Posts: 2
|
Posted: Wed Apr 07, 2010 7:01 am Post subject: filehistory |
|
|
| may be deleting /.netbeans/6.8/var/filhistory would help. It helped me. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|