About settings

manual

[ODB1] Chapter 5 - JDO Connections

The PersistenShows how to use database connections and transactions in JDO. ceManagerFactory interface represents a factory of database connections. Its main role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction interface represents a transaction on a database. Every operation that modifies the content of the database requires an active transaction.[toc hidden:1]... ( properties ) ; Actually, the settings above are redundant because they are the default flag values in ... ( userName, password ) ; The settings of the PersistenceManagerFactory at the time of this operation are ...

 
forum_thread

mapping file is not being loaded

Hi, I am evaluating ObjectDB by using it with an in-house developed library in order to prototype its capabilities / performance. I am having a problem in that the in-house library in question reads a simple configuration file to determine available persistence units, and then bootstraps them using the JPA Persistance.createEntityManagerFactory() method and passing in the persistence unit name (again, obtained from the configuration file ). #1 2012-06-22 15:00 Hi, I am evaluating ObjectDB by using it with an in-house developed library in order to prototype its capabilitie ...

 
forum_thread

Entity Management Config questions

Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entities  : <cache ref="weak" level2="0mb" /> The <cache> element specifies settings of the two cache mechanisms for entities:... /> The <cache> element specifies settings of the two cache mechanisms for entities: The ref ...

 
forum_thread

Unable to execute update query

Hello! I'm trying to do an update query via the explorer to set a new field value for around 400k objects. UPDATE Position p SET p.originalData = null This exception raises when I try to do it: ... HashMap<String, Object> settings = new HashMap<>();         settings.put("javax.persistence.jdbc.user", "admin");         settings.put("javax.persistence.jdbc.password", ... "objectdb://localhost/test.tmp;drop", settings);         EntityManager em = ...

 
manual

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database. Modifying existing entity objects that are stored in the database is based on transparent persistence, which means that changes are detected and handled automatically. This page covers the following topics: Transparent ...

 
manual

JPA Named Queries

Explains how to define and how to run JPA named queries. A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the ...

 
api-jpa

keys(map)

Create an expression that returns the keys of a map.(Method of javax.persistence.criteria.CriteriaBuilder)

 
forum_thread

Left join fetch behaviour doesn't retrieve children?

Hello support, I'm a little bit confused about a left join fetch behaviour. In this test case, i try to fetch my 3 children using a left join fetch. But my collection is null after closing the em. It was expected to be fetched before closing the em, no ? In fact, that is the objective of the fetch purpose (i guess ?). #1 2015-06-07 07:34 Hello, I'm a little bit confused about a left join fetch behaviour. In this test case, i try ...

 
forum_thread

Occasionally slow requests in load testing

We are running load testing against objectdb version 2.3.7_18. The performance is generally OK, however there are quite a few "spikes" in the performance where we are getting a lot of very slow response times from the DB, around 10 - 15 seconds. Looking at the DB server process with AppDynamics we can see that most of the requests get stuck in one of 2 places: com.objectdb.o.PGC:w: line number 232 com.objectdb.o.LFL:U: line number 1068 Please see the attached callgraph examples for full stack trace examples. #1 2012-04-26 12:56 We are running load testing against objectdb version 2.3.7_18. The performance is generally OK, however there are ...

 
forum_thread

Configuration and Activation Code in ObjectDB 2.x

Hi ,   I would like to update the ObjectDB from 1.0 to 2.3.7_25. I used the License key for activating the odbee.jar file and got the activation code.It is mentioned in the side that i need to use the activation code using <activation> tag in the objectdb.conf file. In 1.x objectDB, we are not using any objectDB.conf file, we are just using setProperty method to set the different property e.g. properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); #1 2012-05-16 14:58 Hi, I would like to update the ObjectDB from 1.0 to 2.3.7_25. I used the License key for activating the o ...