About EntityManagerFactory

101-110 of 200Refresh
Forum
1

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

()         );         EntityManagerFactory emf =             Persistence.createEntityManagerFactory ... EntityManagerFactory .. 2016-08-23 00:12:32.946 INFO Main []: *** Create Project and Element model ... at: 61: protected void createProject(EntityManagerFactory emf) { log_info("*** Create Project
Issue
1

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

and persisted in Main in protected void createProject(EntityManagerFactory emf): protected void createProject(EntityManagerFactory emf) { format().outHeader2("Create Project and Element ... (); ... On attempting to persist it get error: Create EntityManagerFactory .. ****** Create
Forum
1

objectdb speed

hii i have one problem . as you said close EntityManagerFactory to restore database its works ... to store data that is not happening when EntityManagerFactory not closed  You can proceed with loading the csv file as usual after reopening the EntityManagerFactory. prateek
Forum
1

"Attempt to lock a non entity object" error

.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... ) {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(           "objectdb:D:\\eclipse
Forum
1

"where in" query

{     public static void main(String[] args)     {         EntityManagerFactory emf ... (String[] args)     {         EntityManagerFactory emf =             Persistence
Forum
1

@MappedSuperclass and @Transient not working as I expected

javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax ... protected int id; @Version protected long version; @Transient protected EntityManagerFactory emf
Forum
1

@OneToMany(fetch = FetchType.LAZY) list is always null

loading, but when I use LAZY with PersistenceUnit (not EntityManagerFactory), it fails. Entities ... loading, but when I use LAZY with PersistenceUnit (not EntityManagerFactory), it fails. The no-detach
Issue
1

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.EntityExistsException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... ); } } private EntityManagerFactory emf; public ReproduceTest() { emf = Persistence
Forum
1

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  @Stateless public class RecordDao { private EntityManagerFactory emf; private EntityManager em; public RecordDao() { } @PostConstruct ... the EntityManagerFactory and the EntityManager explicitly, but let the application server do it for you (see this tutorial). Thank you very very much!  adibe
Forum
1

Bug: ClassCastException by retrieval

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction ... args   */ public static void main(String[] args) {   EntityManagerFactory emf = Persistence