Home » Search

About EntityManagerFactory

131-140 of 200Refresh
Forum
1

Memory leak while merging parent with No Cascade annotation with children

.EntityManagerFactory; import javax.persistence.Id; import javax.persistence.ManyToMany; import ... (String[] args)  {         EntityManagerFactory emf = Persistence.createEntityManagerFactory
Forum
1

Merge with Parent/Child entities not possible

.EntityManagerFactory; import javax.persistence.FetchType; import javax.persistence.FlushModeType; import ... , boolean delete) {   EntityManagerFactory emf = null;   if (delete) {    new File(dbFileName).delete
Forum
1

Multi-thread access to single EM's entities

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... [] args) throws InterruptedException {         EntityManagerFactory emf = Persistence
Forum
1

multiple LEFT JOINs do not work as expected

[] args) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory ... main(String[] args) { EntityManagerFactory emf = Persistence
Forum
1

Mysterious "Attempt to persist a reference to a non managed instance" error

.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import ... ) {     Enhancer.enhance("failing.*");       EntityManagerFactory emf = Persistence
Issue
1

Navigation through lazy loading from Detached Objects

a semi detached state (in which they are still associated with the EntityManagerFactory and enable  lazy ... ) {         // System.setProperty("objectdb.temp.no-detach", "true");         EntityManagerFactory emf
Forum
1

Need help to make this test work and define proper annotations for entities Lists

; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import ... {                 EntityManagerFactory emf;         EntityManager em;                 public
Issue
1

New entity objects are duplicated on merge cascading

) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory(                 "objectdb ... [] args) {         String $connection = "objectdb:db/test.tmp;drop";         EntityManagerFactory
Forum
1

Not able to update records

:758) Following is the code i am executing   EntityManagerFactory emFactory = Persistence ... : EntityManagerFactory emFactory = Persistence.createEntityManagerFactory(Constants.DATABASE_FILE_CLIENTSERVER_MODE
Issue
1

NullPointerException when using multithreading

application has a single instance of the EntityManagerFactory and each thread has its own instance ... .MINUTES);     factory.close(); After 3 minutes the EntityManagerFactory is closed