473,472 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Java persistence

Hi group,

i'm looking for a Java persistence framework that is able to cope with
changes of the class source, i.e. new/changed attributes and/or
methods. Say you have an exported (persistent) instance of a old class
version and want to reload it into a newly started program that uses a
new version of the class. Is there some framework that can do the job
or do i have a strange idea of what instance persistence realy is?
Thanks, Frank.

Jul 17 '05 #1
2 1856
Unless one of the truly world-class propeller heads can prove me wrong, I'm
going out on a limb and saying that, if your class definition changes in
your code, then you can't load an instance of an earlier version of the
class into the JVM running the new version.

"Frank Grimm" <fg****@netscape.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi group,

i'm looking for a Java persistence framework that is able to cope with
changes of the class source, i.e. new/changed attributes and/or
methods. Say you have an exported (persistent) instance of a old class
version and want to reload it into a newly started program that uses a
new version of the class. Is there some framework that can do the job
or do i have a strange idea of what instance persistence realy is?
Thanks, Frank.

Jul 17 '05 #2

"Dan Nuttle" <d_******@hotmail.com> wrote in message
news:wS****************@newsread2.news.atl.earthli nk.net...
Unless one of the truly world-class propeller heads can prove me wrong,
I'm
going out on a limb and saying that, if your class definition changes in
your code, then you can't load an instance of an earlier version of the
class into the JVM running the new version.


It may be possible using reflection, but the problem is ill-defined. If
for example, you have a field called "foo", and then you rename the field
"bar", is the persistence framework supposed to be able to guess that "bar"
is a renaming of "foo" and not just an entirely new field (which
coincidentally appear just when the field "foo" disappeared)?

There's no technical reason why this wouldn't be possible, only
pragmatic/business-rule reasons.

- Oliver
Aug 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Michael Akins | last post by:
Is it possible to use PHP on the front end and Java on the backend? Either using EJB or not? I know it's not common (I've been searching Google) but I'm curious if anyone has done it. Thanks,...
13
by: Charles Handy | last post by:
How does FastCGI compare against java Apps running in java app servers like TomCat, Sun One, WebLogic and WebSphere? Is there a business case for switching from CGI to Java? Performance?...
6
by: Paolo Losi | last post by:
Hi all, I'm pretty new to the python language so please excuse me if this is FAQ... I'm very glad to be part of the list! :-) I'm looking into a way to implement a generic workflow framework...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
3
by: sickky | last post by:
HI please could anyone give me any links/URL's that i could visit for good tutorials / examples on what .net uses as an altenative to java beans ? as far as i can find out it uses "com" and...
2
by: dkode | last post by:
Hello, I am laying out the architecture for a very large website that will scale to a very large degree. I have a couple of questions before I attempt to go and implement a Broker/Persistence...
1
by: wenger | last post by:
java have the java persistence API for object-relational mapping between the java application and relational database, then why we still need the hibernate tools such as vp-uml and middlegen ??
0
myusernotyours
by: myusernotyours | last post by:
Hi all, Am trying to create a Java Desktop App that uses Java Persistence in Netbeans. The database is MS Access but I tried with Mysql and got the same error. When I run the app( Create the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.