473,793 Members | 2,927 Online
Bytes | Software Development & Data Engineering Community
+ 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 1879
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****@netscap e.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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_******@hotma il.com> wrote in message
news:wS******** ********@newsre ad2.news.atl.ea rthlink.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
7112
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, Michael
13
8409
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? Productivity? Features? Object orientation? Code Reuse? Any opinions?
6
4194
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 with python. The basic idea is to use python scripts as the way to specify workflow behavior. The framework should not only use scripts as a specification language but is going to leverage on python interpreter for the execution of the scripts. One...
114
9887
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
320
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 wizards is this true ??? Thanks!!!!
2
2363
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 Layer. 1. With a broker layer, does this layer sit at the same level as the Business Layer? So to speak, the presentation layer has knowledge of
1
1407
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
2400
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 entity manager), I keep getting the following... Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named ReceiptingPU: The following providers:...
0
9670
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10159
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.