Hello all.
As a complete beginner, I have a very simple stateful session bean I'm using to try Hibernate with.
So far it loads some Person objects from a DB (I only have one table, one class so far), and returns them to a client app. The client updates some of the records and passes them back to the SFSB. The SFSB holds on to its Hibernate Session all this time.
At the moment I keep a "dirty flag" in the objects so I know which ones to call saveOrUpdate() on, but this seems a bit clunky.
Is there a better way I'm missing?
Thanks for you thoughts.
|