You don't have to regenerate, but you can if you'd like
and merge the two versions. Visual Age may have some
merge facility that you like, but often our customers use
a windows based merge facility from www.araxis.com called
Araxis Merge. It's a really nice graphical tool that lets
you do side by side comparison and merge, and it's very
fast to do the task you're describing...
Now if you don't want to regenerate, just add the public
get/set methods on the bean, and stateObject and the
method signature on the remote interface for any new
attributes in the same way that you would for your own
code. The only caveat to this is that you'll notice in
the methods we already have created in your EntityBean,
that we also have a modified flag in the set attribute.
You should also copy this line of code from one of the
other generated method.
That's all you need to ensure you have your existing
code preserved while you add new persistent attributes...
THOUGHT Support
|