ObjectDB Database Search

1-50 of 53 results

RT Java application recording into 100DB run OOM after a few hours.

Hi, I am running a java application that records data from 100 feeds into 100 different database - this is done is one thread. It works fine several hours - and suddenly i got an out of memory issue (I checked there is no leak in java - I cleared the entity manager every 10 new entity) - I run

jakarta.persistence.EntityManager

of the given new or detached entity instance into the current persistence context, resulting in, respectively, an insert or possible update when the persistence context is synchronized ... managed and persistent, resulting in its insertion in the database when the persistence context

JPA Entity Fields

The fields of persistable user-defined classes (entity classes, embeddable classes, and mapped superclasses) can be classified into the following five groups: Transient fields Persistent fields ... long version; } If a version field exists, ObjectDB automatically injects the version value into

jakarta.persistence.PersistenceUnitUtil

until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity ... until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity

jakarta.persistence.JoinColumn

) Whether the foreign key column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean insertable (Optional) Whether the column is included in SQL INSERT statements generated by the persistence

jakarta.persistence.MapKeyColumn

Persistence (JPA) 1.0 boolean insertable (Optional) Whether the column is included in SQL INSERT

jakarta.persistence.MapKeyJoinColumn

) Whether the foreign key column is nullable. Default: false Since: Jakarta Persistence (JPA) 1.0 boolean insertable (Optional) Whether the column is included in SQL INSERT statements generated by the persistence

ObjectDB JDBC to Object compiler

like " insert into ObjectT values('hasan','test')" to ObjectT obj = new ObjectT("hasan","test"); em

jakarta.persistence.NamedAttributeNode

-specific attributes. Superclass subgraph entries will be merged into subclass subgraphs. The value ... subgraphs are intended to add subclass-specific attributes. Superclass subgraph entries are merged into

Explorer in 2.3

. Then allow import of that file into another database. 2. Lazy loading of data, especially in table view ... to enter a Java expression into a field. For example, suppose you have a User entity with a password ... . Auto-login of last opened (remote) database puts the full URL into the Database Path field

Step 4: Add a Controller Class

. A GuestDao component is automatically constructed and injected by Spring into the guestDao field

Step 2: Define a JPA Entity Class

the new class. Copy and paste the following code into the newly created Point class: package tutorial

Step 6: Set the Spring XML

To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the  web.xml configuration file and to configure that servlet using another xml configuration file. Open the  web.xml file (under src/main/webapp/WEB-INF) in a text

Java 8 Enhancer Problem

.merge(EMImpl.java:518) Inserting new objects works. Also merging ones created after the update to 2.5

Object belongs to another EntityManager - ERROR

Hi, From time to time we are getting following error in our project when trying to insert /update a record in database [ObjectDB 2.4.6_13] javax.persistence.RollbackException 10:29:14,880 ERROR [stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl#8

@Column length is not working.

I am using objectdb 2.8.3, I have a Entity class with a column that is declared as  @Column(unique = true, nullable = false, length = 16)  but when i m trying to insert a string for that column with a string that has more than 16 character, not able to get any error or exception from

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

of 168,000. I've inserted 168,000 objects of dummy data with an importer. A subsequent 'submit

find() cost unreasonable time!

= (System.currentTimeMillis()-start)/1000f;   System.out.printf(" Insert : %f objects per second %n", iNum

zip file or JAR manifest missing

the target existence, if yes then accumulate, else insert a new record. String sQ2 = "select i from ItemList

Memory use in OneToMany relationships

all Instances of B into Memory when we query for A. Example:     Class Pet holds ... more data about that picture. If we assume we load 10 Pet from the DB into memory and assume each Pet has 10 Pictures would that mean that we automatically load 100 byte[]'s worth of pictures into memory

Possible cause for "Enhancement of type ... is old and cannot be used"

.6_08. Assuming the changes from build 2.6.6_08 were carried into objectdb-2.6.6 from 2016-01-27 ... in build 2.6.6_08 and then integrated into version 2.6.7 (note the version order is: 2.6.6 = 2.6.6

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

Hello, I've written a small OSGi Declarative Services application to run in Apache Karaf 4.0.7 to persist an entity into an ObjectDB database. I'm working in C/S model and I have both the ObjectDB ... if one could simply drop the objectdb bundle into the runtime, request a reference to the Factory and not having

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

check into our application.)   Yet, I STILL see the issue even after confirming that ObjectDB ... so there are no external influences, just what I have built into the JRE application installer package. I will try now

Import data from MySQL

mysql data into objectdb? gzdillon Lai Yang Currently to import data from other databases ... them into ObjectDB. An automatic data conversion utility is expected to be implemented as

Cast exception?

have anything to do with any method from ObjectDB. So I looked into the class loaders and found out: Getting class ... under the extension folder loads properly, so I put the ObjectDB points tutorial (exported) jar into

Can't open replicated database

to the initial empty state of the database. I inserted a few rows into the databases and still got the error

Complex Schema Upgrade not working

" have been merged into the member.Member class - The member.Member class is now the address.Address class We've

InternalException

Trying to move a project from test into production phase, I have started to get internal exceptions when working on large data sets: java.util.concurrent.ExecutionException: com.objectdb.o.InternalException: Unexpected internal exception .... Caused by: com.objectdb.o.InternalException: Unexpected

Disable Evaluation possibility

without Evaluation. We can sometimes run into a problem, that some network interface change, or even weirder

Is there a way to set EAGER fetch on all "ToMany" collection relationships

as the fetch type of all relationships may cause loading the entire database into memory

Can I Disable the Creation of the "log" Directory?

)? CBE CBE Yes. It is the same code. support Support Do I need to turn this forum posting into

Embedded List

instructions support Support I have put it into a simple class, what am I missing? public class testObjectDB

IDs of Entities suddenly became UUIDs?

the application, and possibly set into a field that was marked (maybe by mistake) as  @Id. support Support

Database is erased after deploying a new web application version

). But again, this is not about ObjectDB but about how servlets work. support Support I'll look into

EntityManagerFactory objects being locked during EntityManager creation

to understand any underlying EntityManagerFactory locking mechanism to get deeper insight into

Duplicate Entity class names causes Exception in Query

and then load the projects. I have further problems of this nature. I am trying to load the same classes into

query on calendar class

duplicating this information into an additional persistent field. The comparison failed because of comparing

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: package test; import java.util.Arrays; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax

Cross-platform license

My activation code works fine on my computer Ubuntu but fails on the same machine if I boot into Windows 8.  Is the activation code restricted to an operating system?  Would I lose it's use if I upgraded Ubuntu at some point?  sjzlondon Steve Zara You should be able to use

License Activation Change and Checking Activation

around 800k persisted objects. I don't want to get into trouble when there's something wrong

Problem persisting a TreeSet field

; Seems that objectdb is converting TreeSet into HashSet? Why?  http://www.objectdb.com/java/jpa

Mismatch client-server protocol prefix

but the problem only occurs with this one. The entity manager get's injected into every DAO by Spring

To open source, or not to open source

Hi, We are currently using db4o with a commercial licence, but finds it very frustrating after they have been taken over by Versant. The development of db4o is going very slow and major bugfixes are not been backported to stable releases, but only put into bleeding edge branches.  

Update Entity references if we change the type of an entity

?   We simplified the example. We look into the DB and we have just 3 Objects: EntityC with id #3

[ODB1] Chapter 6 - Persistent Objects

  Object States Objects in a JDO application are divided into persistent objects

ObjectDB 2.5.1

) to-many relationship into an array field ([]) ( issue #1131 ). Fixed a bug in loading mapped (inverse

ObjectDB 2.3.6

LEFT OUTER JOIN. Fixed GROUP BY DATE(...) - merging AM and PM into the same date.

ArrayIndexOutOfBoundsException on flush

seems to be related but unfortunately I dont have a full stack trace as the app went into a commit retry loop

ObjectDB tries to create a File in a localtion without write access

Hello, if we install our Product into the windows Program Files directory which have by default no write acces for the 'normal' users. If we now open 'older' Profiles (older Databases) we get the following exception: Caused by: javax.persistence.PersistenceException: com.objectdb.o.UserException

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

into that build. Please try build 2.6.1. support Support