Home » Search

About EntityManagerFactory

91-100 of 200Refresh
Forum
1

system exception occurred during an invocation on EJB GuestDao

.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null at com.sun ... EntityManagerFactory for unitName null at com.sun.enterprise.container.common.impl.EntityManagerWrapper.init ... : Unable to retrieve EntityManagerFactory for unitName null You may have missed one of the tutorial
Forum
1

UserException: Invalid configuration in 'internal' - Check permissions

: EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error com.objectdb.o ... if the EntityManagerFactory class can't be initialized because it can't find the database. I have tried
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

"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