Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Disable "resyncing JPA"?
Disable "resyncing JPA"? [message #434545] Thu, 09 August 2007 10:02 Go to next message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

We're working on a persistence layer for a large IBM DB2 / AS400 database,
based on TopLink. We're using IBM Rational Software Architect (Eclipse) as
development environment, so we installed the Dali Eclipse plugin.
(Actually, wee didn't get it installed in IBM RSA, so we installed Eclipse
Europa as a work around, I will post another thread about that later on.)

Since the AS400 database uses 5 letter, all capital field names, after
generating an Entity class nearly all member variables have to be renamed
to more readable, meaningful names. Of course we use refactoring to do
this.

The problem is that after every change we make to an Entity class, Dali
starts "resyncing JPA" (or something like that). I don't know if it is
normal, but it takes several seconds to complete each time. I think you
can imagine that we get a little irritated about that; it costs a lot of
time. So we're looking for a method to disable the automatic resyncing or
at least speed it up. We did not found any setting for this.

Since we have over 350 schemas in our database, of which we use only one
at a time, we tried to apply a filter to the database explorer in Eclipse,
in an effort to speed things up. We only get one schema in the database
explorer than, but it seems Dali does not use this filter; at least we did
not notice an increase in the "resync speed". I assume things can be speed
up if Dali does take into account the filters of the database explorer.

I hope someone can help us. We'd prefer an option to (temporary) disable
resyncing, but if that's not possible at all, an option to speed it up is
also welcome. We don't care if we need to do some manual configuration in
a configuration file, if that's the only way to get things done. (But I
think it would be nice if this sort of things can be done via the Plugin
Properties page of Dali in the future.)

Best regards,
Bart Kummel
Re: Disable "resyncing JPA"? [message #434548 is a reply to message #434545] Thu, 09 August 2007 14:45 Go to previous messageGo to next message
Karen Butzke is currently offline Karen ButzkeFriend
Messages: 220
Registered: July 2009
Senior Member
Hi Bart,

There is no way to disable the resynching thread. In 2.0 we are looking
at building our model in a different way and removing the resynching
thread. We also need to investigate the performance of JPA with large
projects, could you open a bug for this issue?

The one way you could essentially disable the resynching is to change 2
settings:
1. Change the JPA project setting 'Persistent class management' to
'Annotated classes must be listed in persistence.xml' and then make sure
not to list your classes in the persistence.xml.

2. You will see an error message on all of your entities saying that they
are not contained in a persistence unit. You can disable the JPA
validation through Project Properties -> Validation and clean the project.

Just change these settings back and you can get validation and defaults
calculations again. Hope this helps.

Karen
Re: Disable "resyncing JPA"? [message #434550 is a reply to message #434548] Mon, 13 August 2007 10:40 Go to previous messageGo to next message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
I'll try if I can file a bug as you requested.

Concerning your suggestion on how to disable resyncing: As I understand it
right, you are basically saying that it can only be disabled at the price
of losing all (or most) of the functionality that Dali adds. I think a
simpler way to achieve this is to open the Java files in the Java
perspective instead of the JPA perspective. In fact, that's what we're
doing now as a work around...
Re: Disable "resyncing JPA"? [message #434551 is a reply to message #434548] Mon, 13 August 2007 11:09 Go to previous message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
I filed bug # <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=199715">199715</a>.
Re: Disable "resyncing JPA"? [message #605343 is a reply to message #434545] Thu, 09 August 2007 14:45 Go to previous message
Karen Butzke is currently offline Karen ButzkeFriend
Messages: 220
Registered: July 2009
Senior Member
Hi Bart,

There is no way to disable the resynching thread. In 2.0 we are looking
at building our model in a different way and removing the resynching
thread. We also need to investigate the performance of JPA with large
projects, could you open a bug for this issue?

The one way you could essentially disable the resynching is to change 2
settings:
1. Change the JPA project setting 'Persistent class management' to
'Annotated classes must be listed in persistence.xml' and then make sure
not to list your classes in the persistence.xml.

2. You will see an error message on all of your entities saying that they
are not contained in a persistence unit. You can disable the JPA
validation through Project Properties -> Validation and clean the project.

Just change these settings back and you can get validation and defaults
calculations again. Hope this helps.

Karen
Re: Disable "resyncing JPA"? [message #605350 is a reply to message #434548] Mon, 13 August 2007 10:40 Go to previous message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
I'll try if I can file a bug as you requested.

Concerning your suggestion on how to disable resyncing: As I understand it
right, you are basically saying that it can only be disabled at the price
of losing all (or most) of the functionality that Dali adds. I think a
simpler way to achieve this is to open the Java files in the Java
perspective instead of the JPA perspective. In fact, that's what we're
doing now as a work around...
Re: Disable "resyncing JPA"? [message #605353 is a reply to message #434548] Mon, 13 August 2007 11:09 Go to previous message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
I filed bug # <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=199715">199715</a>.
Previous Topic:How to use Dali with existing Plugin-Projects ?
Next Topic:Installing Dali plugin in IBM Rational Software Architect
Goto Forum:
  


Current Time: Thu Apr 18 19:28:51 GMT 2024

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

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

Back to the top