Skip to main content



      Home
Home » Eclipse Projects » Dali » Refreshing of Persistence Properties
Refreshing of Persistence Properties [message #433930] Tue, 25 April 2006 16:06 Go to next message
Eclipse UserFriend
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 #433936 is a reply to message #433930] Tue, 25 April 2006 17:24 Go to previous messageGo to next message
Eclipse UserFriend
Kevin,

Please enter a bug for this problem. We are not listening to the RDB model
appropriately (not that we're sure of what is appropriate there :-)) to
handle these updates. I can't think of another workaround right now, but
if I do I'll update the bug with it.

thanks,
Karen
Re: Refreshing of Persistence Properties [message #433940 is a reply to message #433936] Wed, 26 April 2006 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Karen wrote:

> Kevin,

> Please enter a bug for this problem. We are not listening to the RDB model
> appropriately (not that we're sure of what is appropriate there :-)) to
> handle these updates. I can't think of another workaround right now, but
> if I do I'll update the bug with it.

> thanks,
> Karen

Thanks, Karen. Bug report 138624 was just opened for this problem.
Re: Refreshing of Persistence Properties [message #433941 is a reply to message #433940] Wed, 26 April 2006 09:55 Go to previous messageGo to next message
Eclipse UserFriend
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 #433943 is a reply to message #433941] Wed, 26 April 2006 10:34 Go to previous message
Eclipse UserFriend
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 #584902 is a reply to message #433930] Tue, 25 April 2006 17:24 Go to previous message
Eclipse UserFriend
Kevin,

Please enter a bug for this problem. We are not listening to the RDB model
appropriately (not that we're sure of what is appropriate there :-)) to
handle these updates. I can't think of another workaround right now, but
if I do I'll update the bug with it.

thanks,
Karen
Re: Refreshing of Persistence Properties [message #584951 is a reply to message #433936] Wed, 26 April 2006 09:41 Go to previous message
Eclipse UserFriend
Karen wrote:

> Kevin,

> Please enter a bug for this problem. We are not listening to the RDB model
> appropriately (not that we're sure of what is appropriate there :-)) to
> handle these updates. I can't think of another workaround right now, but
> if I do I'll update the bug with it.

> thanks,
> Karen

Thanks, Karen. Bug report 138624 was just opened for this problem.
Re: Refreshing of Persistence Properties [message #584960 is a reply to message #433940] Wed, 26 April 2006 09:55 Go to previous message
Eclipse UserFriend
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 10:34 Go to previous message
Eclipse UserFriend
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
Previous Topic:Online help and user guide
Next Topic:DDL Generation observations
Goto Forum:
  


Current Time: Wed Jul 16 11:10:32 EDT 2025

Powered by FUDForum. Page generated in 0.72254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top