Re: 5 important questions
Klaus Wuestefeld <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
"Does Prevayler provide this? Does Prevayler provide that?" The only thing Prevayler provides is invulnerability for you business objects. All other things you must/can do as if accessing POJOs in RAM. No more, no less. > When you change > your schema, you have to change the program that reads in the data so > it can handle old data formats. Usually this is easy, but sometimes > it is hard. In this case, you have to define a default referrer for > all the old data objects, since they won't have a referrer field. To add or remove a field is easy. Your new class just has to declare a static serialVersionUUID field (google it) with the same value as the old and Java serialization will read the old state in without any problem. I just put serialVersionUUID = 1 on all my serializable classes and forget about it. Hard things are splitting a class in two, changing the superclass, etc... For that you have to write custom code. See you, Klaus. ------------------------------------------------------------------------------ _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org