ObjectDB ObjectDB

Objectdb EntityManagerFactory problem

#1

hii i have one problem actually in my application i made a lot of local Entity manager factory and i want to close all at one time  can you please explain me how i can do it

edit
delete
#2

Your question is unclear. You can close each EntityManagerFactory by using the close method.

By the way, creating an EntityManagerFactory is relatively slow. It is usually better to use one EntityManagerFactory per application, with multiple EntityManager instances for multiple database connections.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.