About SET

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]... and a value for that property. The two properties that are set in the code above are usually essential: ... with transactions, represented by five flags that can be set or cleared. All these optional modes are supported by ObjectDB. Flags can ...   JDO Transaction Flags Transaction modes can be set at PersistenceManagerFactory level (as shown in section 5.1 ), or at ...

 
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 ). ... ( "project.odb" ) ;   //this set is alwasy empty with ObjectDB Set<EntityType> managedEntities = emf. getMetaModel ( ...

 
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: #1 2010-12-20 07:36 Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/ent ...

 
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: ... 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 ...

 
manual

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database.... JPA enum Defines the set of cascadable operations that are propagated to the associated entity. ... JPA enum Defines the set of cascadable operations that are propagated to the associated entity. ...

 
manual

JPA Named Queries

Explains how to define and how to run JPA named queries.... setLockMode(lockMode) Query's method Set the lock mode type to be used for the query execution. See JavaDoc ... setHint(hintName, value) Query's method Set a query property or hint. See JavaDoc Reference Page... ...

 
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 ?). ... java. util . HashSet ; import java. util . Set ;   import javax. persistence . CascadeType ; ...   // Also tested with List private Set <MyEntityChild> entityChildren = new HashSet ...

 
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. ... specific queries. We are running load test with uniform set of queries and the performance is OK in some cases and is slow in others. ... resizing. In the test run yesterday we had resize amount set to default 256kb. We had another test run today and I've changed it to ...

 
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"); ... file, we are just using setProperty method to set the different property e.g. properties. setProperty ( ... application.jar. In the manual, it is mentioned that i can set the conf file path through System.setProperty("objectdb.home", "/odb"); ...