- Code Commit - http://www.codecommit.com/blog -
SaveableEntity Bids a Fond Farewell
Posted By Daniel Spiewak On August 15, 2007 @ 4:13 pm In Java | 4 Comments
Well, to make a small, side entry out of something which probably should be in bold print on the ActiveObjects  website… It’s worth announcing that I’ve merged SaveableEntity into the Entity super-interface. The only reason to keep these two separate was so that some entities could be configured to receive calls to setters and immediately execute UPDATE statements. This is a really inefficient way to code your database model and I think the only real use of it was in my sample code. Since it really was an API misstep, I’ve decided to do away with it. The save() method is now obligatory for any data modification. Thus, any legacy code you may have which extended Entity may not function in the way you would expect (e.g. the DogfoodBlog example no longer persists data properly). If you have any code which extended SaveableEntity, just change this to extend the Entity interface and everything should work as before. Just thought I’d make a general announcement.
Article printed from Code Commit: http://www.codecommit.com/blog
URL to article: http://www.codecommit.com/blog/java/saveableentity-bids-a-fond-farewell
URLs in this post:
 ActiveObjects: http://activeobjects.dev.java.net
All content copyright © 2010 Daniel Spiewak. Distributed under Creative Commons.
All code (unless otherwise stated) is licensed under the BSD License.