RE: Incremental development

"Aidan Slingsby" <[email protected]> Fri, 13 Jan 2006 13:23:54 -0000
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
> On Fri, 2006-01-13 at 13:08 +0000, Aidan Slingsby wrote:
> > When a new method is added to an ozone object, existing persistent=20
> > instances in the database no longer work.  If there a way of easily=20
> > updating all the instances in the database to the new class=20
> > definition, or can this only be done by keeping the old class=20
> > definition too and create new instances of the new class, copying =
the=20
> > data over and deleting the old ones (or using XML or ASCII=20
> > export/import)?  With relational databases, it is relatively easy to =

> > change table design without corrupting the data - can this be the =
case=20
> > in Ozone too (if I do something differently).
>=20
> What exactly do you mean by 'no longer work'?

What I mean is that if write a CarImpl class, store some data in an =
Ozone
database, then edit the code and add fields and methods to get and set a
colour for the car, run OPP again and try and retrieve a car (stored =
before
the class was modified) it will say that the class isn't found (if I'm =
not
mistaken).  I can understand why adding a new field would cause problems
(the binary storage is different).  Anyway, in a relational database, =
one
could just add a new 'colour' column.  I wondered if something like this
could easily be done in Ozone.

Thanks,
Aidan.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
_______________________________________________
Ozone-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ozone-users




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click