Home » Search

About EntityManagerFactory

91-100 of 200Refresh
Forum
1

ObjectDB within a resource adapter module and Java EE Connector Architecture

an XML file in order to be able to generate an EntityManagerFactory. But when using ObjectDB ... of the ObjectDB database instead:' EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/points.odb"); But if you are not using an explicit EntityManagerFactory it is not
Issue
1

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... [] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db ... {     public static void main(String[] args) {         EntityManagerFactory emf
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