Refreshing of Persistence Properties [message #433930] |
Tue, 25 April 2006 20:06 |
Kevin Sutter Messages: 106 Registered: July 2009 |
Senior Member |
|
|
I thought I had seen this problem described somewhere, but now I can't
find it...
I'm having a problem with the Persistence Properties panel getting updated
when the database gets updated. For example, if I add a new table to my
database, or I drop and add a new schema for a table already in use, I
can't seem to refresh the Persistence Properties to represent the new
state. In the past, I think I was able to refresh this information by
"adding persistence" to the project. But, now that this has moved to the
Project->Properties panel, I can't seem to refresh it. My only workaround
at this point is to stop and re-start Eclipse.
Here's a simple scenario...
1. Fire up Eclipse
2. Show Persistence Perspective
3. Either external to Eclipse or using the Database Explorer, create a
new table called Table1.
4. Go to an Entity definition for any of your classes.
5. Select the Table pulldown. Your new table (Table1) will not be
selectable.
I've tried several options of attempting to get this list refreshed while
keeping Eclipse running and I can't find the magic sequence. If I stop
and re-start Eclipse, the table will appear.
I've had the same problem with new/updated columns for an existing table.
Thanks,
Kevin
|
|
|
|
|
|
Re: Refreshing of Persistence Properties [message #433943 is a reply to message #433941] |
Wed, 26 April 2006 14:34 |
Kevin Sutter Messages: 106 Registered: July 2009 |
Senior Member |
|
|
Neil,
Nope, that doesn't do it either. I tried that already. I've tried
disconnecting and re-connecting to the database, closing and re-opening of
files, closing and re-opening of projects, and several combinations of
these actions. Every great once in a while, I seem to get lucky and can
find the new table definitions. But, then when I try to reproduce the
scenarion, no luck... :-)
I also have noticed old tables that no longer exist in my database show up
in the list of available tables. Even after I restart Eclipse... Not
sure if this related to the same problem or not.
Thanks,
Kevin
Neil Hauge wrote:
> Kevin,
> I believe the workaround for this is to disconnect from the database in
> the explorer and reconnect. This should bring everything in synch if I
> remember correctly.
> Neil
|
|
|
|
|
|
Re: Refreshing of Persistence Properties [message #584983 is a reply to message #433941] |
Wed, 26 April 2006 14:34 |
Kevin Sutter Messages: 106 Registered: July 2009 |
Senior Member |
|
|
Neil,
Nope, that doesn't do it either. I tried that already. I've tried
disconnecting and re-connecting to the database, closing and re-opening of
files, closing and re-opening of projects, and several combinations of
these actions. Every great once in a while, I seem to get lucky and can
find the new table definitions. But, then when I try to reproduce the
scenarion, no luck... :-)
I also have noticed old tables that no longer exist in my database show up
in the list of available tables. Even after I restart Eclipse... Not
sure if this related to the same problem or not.
Thanks,
Kevin
Neil Hauge wrote:
> Kevin,
> I believe the workaround for this is to disconnect from the database in
> the explorer and reconnect. This should bring everything in synch if I
> remember correctly.
> Neil
|
|
|
Powered by
FUDForum. Page generated in 0.04307 seconds