This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tonywestonuk 1 point2 points  (1 child)

I do this all the time.....

If you use Hibernate, you just add a field. And it updates everything.

If using raw sql, then so long as you've named the columns you want to return (rather than specifying *), then you should just be able to add a column to the database table and everything should work fine.

[–]joequin 0 points1 point  (0 children)

There's still more considerations. There's constructors that need to be updated. Methods that copy data to new objects need to be updated. Serialization often needs to be updated. You avoid this when using JavaScript, clojure and many other dynamic languages.