I'm a first-timer to this and would like to have some guidance regarding how to store objects in a database..
I have an object Person, with a couple of fields in it. I have one PersonContainer which loads all the objects from the database.
What is best of these two: (or if they both suck, tell me what's the right thing to do)
Store the object just as a XXX.store(new Person())
or
Store the object as in XXX.store(new BeanItem(new Person()))?
Whats "good practice" to do?