Two Questions:
1) If I call the following code multiple times, does it
allocates/de-allocates (open and close connections) everytime or create a
pool automatically? Note that this is the only place where I have made any
calls to the PersistenceManager.
public void method1()
{
PersistenceManagerFactory factory =
PersistenceManagerFactoryImpl.getInstance();
PersistenceManager manager = factory.getPersistenceManager();
MyObject myObj = new MyObject();
/////// some processing here
manager.makePersistent(myObj);
myObj.doSomthing();
}
2) If I make changes to my object after I call the
manager.makePersistent(),
will it persist the changes that I have made afterwards?
Thanks
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>