ObjectDB Database Search

51-100 of 200 results

Pessimistic Lock Timeouts setting

.objectdb.o._LockTimeoutException: Write lock cannot be granted for a.b.c.d.EE#150. irrespective if I set ... setting a shared lock in the EJB could get around this, but this would be global and impact all threads ... on stale updates. Willks William Support of pessimistic lock timeout  setting ( javax.persistence

DB Doctor sets type to "unknown" for new fields

to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached ... ) is set to unknown. Both are defined as Boolean in Java code. As a result, update operations ... like the following fail to change the value from null to false: UPDATE RecordingMetaData AS r SET r

Setting temp directory location in ObjectDB

.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax ... , how can i set the temp directory using my java class  e.g  setting through  ... directory where fileName.odb is located. But i want to set the tempority folder location

Understanding Database max-threads objectdb.conf Settings Option

(attached to forum thread mentioned above), I set  Database max-threads.  In the documentation, it was not completely clear to me if this setting controlled how many internal threads ObjectDB uses, or if ObjectDB is doing some sort of queue/locking whose depth is determined by this setting

Can a Set be a foreign key?

a variable (private Set cellHeldCharacters;) which holds the IDs of the characters within the cell ... is it illegal/unrecommended to do it for a Set ? For a better picture, I have: @Entity public class Character ... ;   private double cellSize;     private Set cellHeldCharacters

"Failed to serialize instance" of Set problem

, mappedBy="parent") private Set abstractContainers = com.google.common.collect. Sets ... of com.google.common.collect. Sets $SetFromMap - field xxx.AbstractContainer.abstractContainers at com ... Vladimir Tsichevski Maybe the set contains objects that cannot be serialized. Check the full stack trace

JPA query of a Set of terms

. ie. Set terms;     // the set is filled with SearchTerm objects ...   any term should be simpler: Set terms; // the set is filled with SearchTerm objects

JPA and handling large data sets

. But exporting large binary data sets is very slow. To avoid memory problems the binary data type is read step ... data sets the way is slow. We have an own entity for storing binary data (pictures, documents). Hint ... , which will retrieve only objects with larger primary key as the next set of objects. Usually the problem

best practice for configuration settings

setting ? synchronized there is no documentation about this setting , what does it do/mean ? hgzwicker Hans ... settings under the real conditions. If synchronized is true requests to the database are synchronized

Safe Settings

Hi, I am trying to set up ObjectDb in a safe way that allows turning the machine ... with both configuration settings with the debugger and I put a breakpoint in FileDescriptor#sync(). It never got triggered with no setting that I could come up with. How come? Thanks in advance

@ElementCollection Set is emptied sometimes

already. ObjectDB seems to clear some fields that are @ElementCollection Set of my objects ... is emptied, but not null. So, my @ElementCollection Set fields become empty sometimes during development ... it. Initially, I was not using @ElementCollection on my Set fields from User class. I've seen

ManyToMany Set is null

")     private Set contracts = new HashSet (); ---------- @Entity public class Contract ... = "contracts")     private Set persons = new HashSet (); [...] itsme Martin Petzold

-XMX settings recommendation

The default is 256M  what is the recommended settings based on?  It is the size of the DB? number of connections?  If the DB has over 200GB of data and max connection of 400 then will I need to make this settings higher?  Thanks. Trianglehead Json Error There is no magic

Fetch Set from DB only works on debug mode

I have a class A, that contains a LinkedHashSet of  another class named B. When I try to fetch that hash set , it returns a null pointer. BUT, when I run the program in debug mode, it works fine ... the EntityManager . In debug mode, by examining the set you load the data before closing the  EntityManager

Objectdb Server Mode set up with glassfish

Hi I'm new to Java, glassfish and objectdb, so please forgive my ignorance. I have a glassfish server working with the embeded mode of objectdb. I now want to set up objectdb in server mode. I ... my project ? How do I configure my persitence.xml file ? Do I need to set up something in Glassfish

NullPointerException while setting a new property value

to entities from 2 threads: 1. Creating a list of entities, default values are set from imported file 2 ... and re- setting some properties to entities from the collection. NPE is thrown at some point

Detached Entity Objects

an instance of Address , which is another entity class. Due to the CascadeType.DETACH setting ... setting , when an Employee instance is merged the operation is automatically cascaded

JPA Query Structure (JPQL / Criteria)

FROM ... [WHERE ...] UPDATE ... SET ... [WHERE ...] Besides a few exceptions, JPQL is case insensitive ... . Organization of this Section This section contains the following pages: Detailed explanations on how to set

JPA Metamodel API

) in the persistent object model are represented by the following sets of interfaces and enum types ... in the above sets extend the Bindable interface, which may be used in defining criteria query

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/ set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

ORDER BY clause (JPQL / Criteria API)

Criteria Queries The CriteriaQuery interface provides methods for setting the ORDER BY clause ... (c. get ("population"))); Unlike other methods for setting criteria query clauses - the orderBy

Database Transaction Replayer

on a different physical device by setting the path attribute in the configuration . The recording

FROM clause (JPQL / Criteria API)

, MOD, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT, SET , SIZE, SOME, SQRT

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.

What's next?

the picture by describing some tools and settings that are specific to ObjectDB:

Running JPA Queries

all the Country instances to zero: int count = em. createQuery ("UPDATE Country SET area = 0

Criteria Query Selection and Results

The JPA Criteria API interfaces in this group are used for setting the SELECT and ORDER BY clauses and for representing query results as tuples. SELECT Clause Elements The content of the SELECT clause in a criteria query is represented by Selection : Because Selection  is a super interface

Online Backup

directory can be specified by setting the target parameter before executing the backup query:  

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings . Defining a persistence unit is optional when using ObjectDB, but required by JPA. persistence.xml Persistence units are defined in

Criteria Query From Elements

The interfaces in this group are in use for setting a criteria query FROM clause. Criteria Query Variables The FROM clause  in JPA queries (as in SQL) defines the query variables. Query variables are represented in criteria queries by descendant interfaces of the From interface: Range

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

to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... " [ObjectDB 2.6.9] javax.persistence.RollbackException Failed to commit transaction: Failed to set numeric ... : com.objectdb.o.UserException: Failed to set numeric value of field property com.greensoft.objectdb

InterfaceRef jakarta.persistence.StoredProcedureQuery

with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters. It is not required to set the values of stored procedure parameters for which default values ... the most general case (multiple result sets and/or update counts, possibly also in combination

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

. set (platformConnector); } ... } I get an exception thrown  when trying to create an entity ... ._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using ... ObjectDB's. However the error message Failed to locate set method for field property... is misleading

Step 5: Add a JSP Page

the request's  guestDao attribute that is set by the controller in the previous step). The next step (and the last in this tutorial) is setting the  Spring XML configuration .

Step 2: Entity Class and Persistence Unit

+ ")"; } } The Guest entity class will represents guests in the database. We also need to configure JPA by setting

Step 1: Create a Maven Web Project

; copy and paste to replace its content with the following settings : 4.0.0 com.objectdb.tutorial

Step 1: Create a Java Project

qualified class name is set (you may use copy & paste). Click the Finish button to create

Step 1: Create a Maven Web Project

file and use copy and paste to replace its content with the following settings : 4.0.0 com.objectdb

Step 2: Entity Class and Persistence Unit

JPA persistence unit (with default settings ) was generated in a persistence.xml file that was added

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 3: Create an ObjectDB Data Source

of the ObjectDB data source. The next step is using this data source to create a data set for the BIRT report.

Step 2: Entity Class and Persistence Unit

by setting a  META-INF/persistence.xml file: Right click the src/main/resources node (in

Step 5: Design a BIRT Report Chart

these fields for content assistant) and click Next . In the [Format Chart] tab you can set the chart title

Step 2: Entity Class and Persistence Unit

JPA persistence unit (with default settings ) was generated in a persistence.xml file that was added

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 5: Add a JSP Page

from the request's "guests" attribute that is set by the servlet in the previous step). The next step

Step 5: Add a JSP Page

" attribute that is set by the servlet in the previous step). The next step (and the last one in this tutorial) is running the web application .

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types: