ObjectDB Database Search

101-150 of 200 results

client server mod of communication

with server, in client server mode.    1) EntityManagerFactory emf = Persistence ... ) EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb://localhost:6137 ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:testmemory.mem");  

ODB IndexActivation NullPointerException

and closing the creation of EntityManagerFactory or of EntityManager? Is it possible to ask if the ODB ... EmbeddedSystems We can add the following code block after creating the EntityManagerFactory . this. entityManagerFactory = createEntityManagerFactory(....); //trigger the ODB IndexActivation. It failed

mapping file is not being loaded

with the Persistence api: EntityManagerFactory emf = Persistence.createEntitManagerFactory("project.odb"); //this set ... ; This simple program: import javax.persistence.Entity; import javax.persistence. EntityManagerFactory ... (String[] args) {         EntityManagerFactory emf =   

Memory leak

when the user logs out, as well as EntityManagerFactory . We use em.clear() after every commit ... The heap dump indicates that 9 EntityManagerFactory instances have been created and have not been closed, and ObjectDB is very sensitive for closing every opened EntityManagerFactory . Please try build

ObjectDB within a resource adapter module and Java EE Connector Architecture

an EntityManagerFactory . But when using ObjectDB you can either define a standard persistence unit in ... :' EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/points.odb"); But if you are not using an explicit EntityManagerFactory it is not clear to me how to "inject" easily specs

Connect to objectdb database

EntityManagerFactory   EntityManagerFactory emf = Persistence . createEntityManagerFactory ( "objectdb-unit ... : EntityManagerFactory emf = Persistence . createEntityManagerFactory (     

Memory consumption of empty Strings

[] args) {     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("sscce.odb");     EntityManager entityManager = entityManagerFactory

ArrayIndexOutOfBoundsException at com.objectdb.o.ALS.c(ALS.java:89)

:325) Line 16 in ArpMonitor.scala: val emf: EntityManagerFactory = Persistence ... a single EntityManagerFactory with multiple  EntityManager instances. It is uncommon to create multiple  EntityManagerFactory instances as demonstrated by your code. support Support

Entity factory

; ... } } public interface EntityFactory { T create(Class entityClass); } EntityManagerFactory entityManagerFactory = (...); entityManagerFactory .setEntityFactory(myFactory); The JPA listeners

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

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

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  prateek Prateek gupta You can proceed with loading the csv file as usual after reopening the  EntityManagerFactory . support Support

ObjectDB and Spring Boot - sharing a simple working example

(). build (); } @Bean (name = " entityManagerFactory ") public EntityManagerFactory ... ( EntityManagerFactory emf) {      JpaTransactionManager txManager = new JpaTransactionManager

Finding out the JPA provider

and EntityManagerFactory , but its not. So I am left with EntityManager.getDelegate() instanceof com.objectdb.jdo.PMImpl or EntityManagerFactory instanceof com.objectdb.jpa.EMF. Or putting something in my properties ... the EntityManagerFactory :     boolean isObjectDB = emf.getProperties

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 with several input

Merge Issue: Attempt to reuse an existing primary key value

;     EntityManagerFactory emf = Persistence.createEntityManagerFactory(   ... ;   public void test() {         EntityManagerFactory emf ... ;  EntityManagerFactory emf =            

system exception occurred during an invocation on EJB GuestDao

to retrieve EntityManagerFactory for unitName null at com.sun.enterprise.container.common.impl ... ) Caused by: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName ... with a null name: Caused by: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory

CriteriaQuery .where() for multiple conditions

(String name, String surname, ServletContext servletContext) { EntityManagerFactory emf = ( EntityManagerFactory ) servletContext.getAttribute("emf"); EntityManager em = emf.createEntityManager(); Person

Online backup problem

the backup. support Support This is the code I used in my servlet : EntityManagerFactory emf = null;   ... - with the same result.   EntityManagerFactory emf = Persistence.createEntityManagerFactory

Bug: ClassCastException by retrieval

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

Schema-Update: Rename superclass and remove one subclass

: Generate Database public static void main(String[] args) { EntityManagerFactory emf = Persistence ... EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:test.tmp"); EntityManager em = emf

javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test

(); Thread.currentThread().setContextClassLoader( EntityManagerFactory .class.getClassLoader()); then it works ... in order to support e.g. Declarative Services and possibly provide  EntityManagerFactory as

Optimistic locking: prevent version increment on entity collection attribute

.Test public void test() throws IOException { EntityManagerFactory emf = Persistence ... document; } } @org.junit.Test public void test() throws IOException { EntityManagerFactory emf

Performance and memory usage of queries

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

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 public ... the EntityManagerFactory and the EntityManager explicitly, but let the application server

persisting object with long[][] arrays of array

) {         EntityManagerFactory EMF = Persistence ... ;       EntityManagerFactory EMF = Persistence.createEntityManagerFactory

connection pooling

THUFIR THUFIR Every EntityManagerFactory instance manages a pool of connections and reuses ... with EntityManagerFactory  (which manages the connection pool) and EntityManager (which represents

Problem with distinct select, order by and equivalent alias/attribute path

. EntityManagerFactory ; import javax.persistence.Persistence; /** * * @author Benjamin Klink, SOLVIT GmbH */ public ... static void main(String[] args) {         EntityManagerFactory emf

EntityManager refresh problem

javax.persistence. EntityManagerFactory ; import javax.persistence.Persistence; import javax ... ;  odbFile.delete();         EntityManagerFactory emf

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

EntityManagerFactory " entityManagerFactory ", which is associated with the MySQL/Hibernate

General Performance Issues Illustrated with a Specific Method

;dbUrl += ";drop";          EntityManagerFactory emf = Persistence ... static void store( EntityManagerFactory emf) throws Exception {         

Cast exception?

EntityManagerFactory createEntityManagerFactory(String paramString, Map paramMap) /* */ { /* 73 */ EntityManagerFactory localEntityManagerFactory = null; /* 74 */ PersistenceProviderResolver

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

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.GeneratedValue; import ... ;         EntityManagerFactory emf;       

Storing objects problem

that you have described. support Support Main class:       EntityManagerFactory emf ... (switch1);   router.getChildren().add(switch2);     EntityManagerFactory emf =  

Does ObjectDB support lazy loading?

void main(String[] args)   { String path = "test.odb"; EntityManagerFactory emf = Persistence ... ; String path = "test.odb";     EntityManagerFactory emf = Persistence

Join performance in Objectdb

;  EntityManagerFactory emf =             ... ; EntityManagerFactory emf =             Persistence

Database(*.odb) file size on disk

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.FlushModeType ... ) {   EntityManagerFactory emf;   emf = Persistence.createEntityManagerFactory("objectdb

combined index not used

(String[] args) throws Exception { EntityManagerFactory emf = Persistence.createEntityManagerFactory ... ;            entityManager = entityManagerFactory .createEntityManager ... .no-schema-upgrade", "true"); EntityManagerFactory emf = Persistence.createEntityManagerFactory("D:\\odb

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

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.FetchType; import ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop");   ... ; EntityManagerFactory emf =            

Memory leak in com.objectdb.o.CST

; Thanks! Trianglehead Json Error You have 168 EntityManagerFactory instances. Do you access 168 ... one EntityManagerFactory instance, use it for creating multiple EntityManager instances, and remember to close each EntityManagerFactory and EntityManager instance at the end of use. support Support Hi I think

Unexpected exception when execute query without enhanced entities

; EntityManagerFactory emf =             Persistence ... ();     }     private static void store( EntityManagerFactory emf ... ();     }     private static void retrieve( EntityManagerFactory emf) {  

Best practise loading big data

the database (i.e. the  EntityManagerFactory ) . If you need an advice regarding tuning cache ... .persistence . EntityManager ; import javax.persistence . EntityManagerFactory ; import javax ... = new File (fileName); if (f. exists ()) { f. delete (); } EntityManagerFactory emf = Persistence

Tracking changes to new collections (in enhancement mode) after flush

";          EntityManagerFactory emf = Persistence ... ) { EntityManagerFactory emf = Persistence .createEntityManagerFactory("objectdb:c:\\test.tmp;drop ... ";          EntityManagerFactory emf = Persistence

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

createProject( EntityManagerFactory emf): protected void createProject( EntityManagerFactory emf) { format ... .getTransaction().commit(); ... On attempting to persist it get error: Create EntityManagerFactory

"is not null" queries not working with index

.persistence. EntityManagerFactory ; import javax.persistence.GeneratedValue; import javax.persistence.Id ... [] args) {         EntityManagerFactory emf = Persistence

Strange Error with Criteria API and Sorting

; import javax.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax ... (String[] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory

Unexpected exception (Error 990) com.objectdb.o.InternalException

main(String[] args) {         EntityManagerFactory emf =   ... ;      EntityManagerFactory emf =        

Server crash - Mismatch client-server protocol prefix

.fastmodel.fastplan.db. EntityManagerFactory .doFilter( EntityManagerFactory .java:202) at org.apache

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

.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence ... .getName()).log(Level.SEVERE, null, ex); } } private EntityManagerFactory emf; public ReproduceTest

Close() Method of EMF throwing "PersistenceException: Connection is closed" on first attempt to close.

to close the EntityManagerFactory associated with these ODBs by calling the EMF’s close() method.  ... Thanks, Clinton Moore CAPdev CAP Dev The exception indicates that the EntityManagerFactory

Navigation through lazy loading from Detached Objects

a semi detached state (in which they are still associated with the EntityManagerFactory and enable ... ;  EntityManagerFactory emf =