Internal Website Search

101-150 of 200 results

Soft Reference Object Cache Recommendation

to have my persistent objects be cached until the Java Virtual Machine (JVM) does a full Garbage Collection (GC ... to get rid of older objects before more recently accessed ones.  I attempted to use Java SoftReference to my large byte[] and instruct ObjectDB to use soft reference for its Level One (L1) object data

Entity listener - event instead of object

values in updated entity. There is a problem however with accessing "old" version of object stored in ... @ElementCollection private Set activities; This way I can add events to given object without using EM to persist new object . What I want to accomplish is to log difference between new and old values for every change

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org

Time Sequence Object Command DB

We (www.s2ssystems.com) have a time-sequential object command database.  I would like ... general) are create object , change object (fields), delete object , and object -method execution commands.   Method commands are generally used to trigger creation of transient objects . 

UserException - Object User#2 belongs to another EntityManager

CDI. Problem on method execution, which runs a NamedQuery: com.objectdb.o.UserException - Object 'com ... Chirac This exception is thrown only when mixing entity objects of different entity managers (which is forbidden, since every EntityManager manages its own space of managed objects , and a managed

OutofMemory error with Object DB 2.0

is commited after persisting 200 records and then the same transaction object from the same ... of the application it will show what objects fill the heap. But one possible reason for  ... ;ObjectDB 1.x). In that case, new objects are not released on commit automatically. This could be solved by

Searching lists within objects

much I want to search using cb.isMember passing an object . This however does NOT work. I'm uncertain ... , which means you can only match isMember if you have a database object . This does not help as I'm never going to have the real object at search time. Trying to use join is problematic as for every extra

GWT RPC is throwing serialization exception when I have object db date value

object could not be loaded. For security purposes, this type will not be serialized.: instance =Sat ... serializarion for all of mine Data Transfer Object . But still I am getting this error. Note: (In gwt RPC you cannot use the Entity objects , You need srializable DTO objects to handle CRUD operations).  

collection of embedded objects

1. In general, are there any restrictions of the use of @Embedded objects in collections, compared to @Entity ? 2. If you have a large nested collection of @Embedded objects , and you remove ... through collections of @Embedded objects more expensive (time) than searching through collections of @Entity ? Thanks

2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object"

a primary key of a managed object ", but my application is not trying to change the primary key.  ... to represent object IDs externally when a combination of class + primary key is needed ... typed by the user and is the primary key used to save/restore the object into/out of the database. 

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public class ... number;   Which is a part of Customer object : @MappedSuperclass @NamedQueries({     ... ;  Object principal; The entity is: @Entity public class MobileCustomer extends Customer {  

How to access database object to my application.

Hi, I want to access a object which contains some value like id,name,college and address. Here it returns some address but i am not getting object value, i attach 3 java program below, please check. 1: GetterSetter method  2: Creating object for insert data  3: For Access data

object creation during pmf.getPersistenceManager()

Hi   We have observed that during pmf.getPersistenceManager(), objectdb is creating object ... that in that transaction we will create instances for all classes. The number of objects created ... ). The object network is small, it was read from file via deserialization, file has size 2MB. The data

removed objects stay with null field values in the reference

We have a class with a one to many relationship declared like this (1 or more objects of the same ... ; ... @OneToMany(fetch=FetchType.LAZY) public Set workflow = new HashSet (); When we remove an object that is in this relationship (workflow), the object stays in the relationship with all fields set

how to operate with same object but two different Thread on database.

object and same database. Description: i have three classes  GetterSetterclass.java here declare ... create a thread, create object of Gettersettetclass, i.e insert operation and pass that object ... ;which is for update operation. and i am getting that object here  which is passes from insert.java class

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects ... object " session.rollback() is somehow causing the problem (found through debugging ... ------------------------------------------------------------- Attempt to lock a non entity object   AlphaOne Ron Brennan Error was caused

Criteria Query results in a NoResultException instead of returning object

) ... 45 more   Even though there exists an object that matches the query (check attached screen shot). Should the query be returning an object or am I doing something wrong?   Thanks.   ... equivalent of the criteria query returns an object : String queryStr = "select i from " + identityClass

Storing Images and Object Pooling

apps i think. I think it will be good if you make object pooling for every class.We dont know about your codes but i think it will be very good if you make object pool. kadirbasol Kadir BASOL ... mechanisms, including object pooling. To use object pooling more aggressively consider

Object belongs to another EntityManager - ERROR

[stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl#8 ... .PersistenceException: com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl#8' belongs ... :15,084 ERROR [stderr] (http--10.23.3.98-8081-5) Caused by: com.objectdb.o.UserException: Object

ObjectDB License Agreement [ver. 2.0.4]

of classes and objects in a database file s . The full edition of the Software (without the restrictions

Strings in JPQL and Criteria Queries

order to support optional arguments and when applicable simple Java objects as well as criteria expressions.

Is ObjectDB scalable? What are its limitations?

. Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections (limited by operating system resources).

Numbers in JPQL and Criteria Queries

Java numeric object : // Create path and parameter expressions: Expression path = country

ObjectDB License

Free License ObjectDB can be downloaded and used at no cost (including commercially)  with the restriction of a maximum of  10 entity classes and one million entity objects per database file. This could be useful for small projects, academic assignments, evaluation and learning

Privacy Policy

. The right to restrict or stop the processing of your data. The right to object  to how we process

Literals in JPQL and Criteria Queries

expressions. Ordinary Literals The main method, literal , takes a Java object and returns a literal

Obtaining a JPA Database Connection

). Once the EntityManager object is closed it cannot be reused. However, the owning EntityManagerFactory

Chapter 2 - JPA Entity Classes

JPA Entity classes are user defined classes whose instances can be stored in a database. To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes. 

ObjectDB 2.9 Developer's Guide

to store, retrieve, update and delete database objects .        

Is ObjectDB a NoSQL Database?

, but they are easier to use in object oriented languages such as Java. In addition, unlike most other NoSQL databases

Criteria Query Selection and Results

tuples: The Tuple interface can be used as a clean alternative to Object [] . See the SELECT in

Comparison in JPQL and Criteria API

. For embeddable objects , e1 = e2 if e1 and e2 have exactly the same content. ObjectDB supports

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects . The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

JPA Criteria API Queries

, are defined by the instantiation of Java objects that represent query elements. A major advantage

General Settings and Logging

, such as query results that contain millions of objects . The element specifies temporary file settings

new objects not available in mappedBy associations

; creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object ... automatically when the object is retrieved from the database again. Try to refresh the department

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

. When the project runs it logs creation of objects . Please note that there are 2 Project objects , and note that every Element object (except Project itself) gets a Project reference on construction: INFO ... ) We see that 2 Project objects were created, however in the database Explorer it lists size=0 for Project

spuriously objectdb objects have null references

from time to time we have in a multi threaded environment objects where all the references ... methods and protected them with synchronized like:   ... private static Object lockBegin = new Object (); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin){ try

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: Retrieval by navigation from detached objects is not supported, so only persistent fields that have been loaded before detachment should be used. As explained on the Object DB vs EclipseLink/TopLink

each 1-2 days objects on some objectdb level lock/block each other

select queries without any object manipulation in these threads hgzwicker Hans-Georg Zwicker ... ;  java.lang.Thread.State: BLOCKED (on object monitor)         at com.objectdb.o.PGC.p(PGC.java:256)         - waiting to lock (a java.lang. Object )  

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register a ServletContextListener to perform initialization and cleanup operations: The database will be opened (or

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entity objects , where each Point has two persistent fields: x and y

JPA Tutorials

The following tutorials demonstrate how to develop database driven applications using JPA and the ObjectDB ODBMS ( Object Oriented Database Management System). Console JPA Tutorial The Quick Start tutorial demonstrates how to use ObjectDB and JPA in a console application: Quick Start with JPA

Step 4: Run the Application

the existing database file to store an additional 1000 objects . You can view the content of the database file

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register a ServletContextListener to perform initialization and cleanup operations: The database will be opened (or

Getting Started with JPA and NetBeans

This is the NetBeans version of the  Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in NetBeans. The demonstrated application uses JPA to store and retrieve simple  Point entity objects , where each  Point has two persistent fields

Step 4: Create an ObjectDB Data Set

this tutorial contains Point entity objects . We will use a simple JPQL query that retrieves points with x

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.