ObjectDB Database Search

51-100 of 200 results

Activation code is invalid, if restart OS Ubuntu 22.04

I created an activation code and the database works fine. After restart of the computer I ... How the activation code is binded at the computer? The mac adress? There are three mac adresses ... be a problem?   btc_es BTC EmbeddedSystems How the activation code is binded at the computer

Concerning coding style of the example in the posting instructions

with reference to the coding example in the posting instructions and many of your other examples posted in the forums. While I appreciate the recommended coding style as shown makes for convenient minimal examples ... ArrayList ();  a.list.add(new B( 1 ));         a.list.add(new

Start ObjectDB inside java code.

, you should be able to run it also from your own code by calling the main method directly:    ... but how and where do i activate those line of code now? i mean where do i put the     ... ;   I did try String [] test = new String[ 1 ] ;   test[0] = "start";   com.objectdb

Gradle-Kotlin Code Contributions

to have a thread where people could post and find Gradle-Kotlin code potentially useful to ObjectDB ... ") } group = "tutorial" version = " 1 .0 -SNAPSHOT" repositories { mavenCentral() } dependencies

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

.router.internal.AbstractNavigationStateRenderer.lambda$getRouteTarget$ 1 (AbstractNavigationStateRenderer ... $3bdbbbb5$ 1 (UI.java:1881)     at com.vaadin.flow.component.UI.browserNavigate(UI.java:1892 ... $dd1b7957$ 1 (ComponentEventBus.java:303)     at com.vaadin.flow.internal.nodefeature

Reading 1.x odb files in ObjectDB 2.x without upgrading

db odb file from version 1 .x to 2.x, user is unable to open the odb files in the application which is having object db 1 .x installed. Is there any way to read odb files from 1 .x in object db 2.x ... binitbhaskar Binit Bhaskar Old ObjectDB 1 .x databases cannot be opened directly by ObjectDB 2.x

Upgrade to 2.4.1_01

Hi, We tried to upgrade from 2.3.7_18 to 2.4. 1 _01 to pickup some fixes. We discovered that our code no longer works when using 2.4. 1 _01. We did some probing and found one thing. I have attached ... our code for 2.3.7_18, we had @OneToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER

License Key on macOS Sequoia 15.6.1

of macos Sequioa 15.6. 1 (24G90). Unfortunately since then the mac-id behavior drives me crazy (*). If I create a new activation code for my objectdb.conf it will be valid sometimes for 2 hours ... and validating the activation code in 2.9.3? My currently problem (only on this Apple Macbook M1

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

, with object 1 .x, the same query was getting executed within an seconds and now the same is taking around 40 ... query.execute(param1, param2); This takes 1 second to execute using objectdb1.x, but the same takes ... objectdb explorer binitbhaskar Binit Bhaskar ObjectDB 2.x is usually faster than ObjectDB 1 .x

objectdb explorer in ver 2.2 and 1.0

You are right - some important features of ObjectDB 1 .0 Explorer are not implemented yet in ObjectDB 2.2 ... the new code base, so only a limited version of the Explorer was provided with ObjectDB 2.0 ... to the Explorer in future versions. Support of ObjectDB 1 .x is now limited, so new application

Will ObjectDB support JPA 2.1 CriteriaDelete?

Code like this: CriteriaBuilder cb = getEntityManager().getCriteriaBuilder(); CriteriaDelete criteriaDelete = cb.createCriteriaDelete(entityClass); Throws: java.lang.UnsupportedOperationException at com.objectdb.jpa.criteria.CriteriaBuilderImpl.createCriteriaDelete(CriteriaBuilderImpl.java:1508

GlassFish 3.1.2.2/JBoss 7.1.1

). May be you have some ideas?  When we just try JBoss 7. 1 . 1 nothing works at all. Where I can get a real ... . webel Dr Darren Kelly As discussed in a previous forum thread - JBoss 7. 1 . 1 is expected to be supported ... there are also issues with GlassFish 3. 1 .2 (GlassFish 3. 1 . 1 may work better with ObjectDB

Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2

Hi. I have faced a very serious issue. After upgrading the GlassFish server from 3. 1 . 1 to 3. 1 .2 ... ) at com.n2nconnect.mm.jsf.controller.ProjFeedController$ 1 .createPageDataModel(ProjFeedController.java:60 ... more It seems that there is something wrong with persistent context. it seems that glassfish 3. 1 .2 behaves differently. I

Database Management Settings

and 1,000,000 entities per database), you must specify a valid activation code in an element. Activation codes are generated by running the Activator utility from the command line: $ java -cp objectdb.jar com.objectdb.Activator Each computer requires a specific activation code , but you can specify

Setting and Tuning of JPA Queries

the page number (starting from 0 for the first page), the following code retrieves the results ... instance, em , are visible to any code that uses em , even before the transaction is committed ... to all result objects that the query retrieves. For example, the following code sets a pessimistic WRITE

Enhancer: non-zero exit code at exceptions

Hello, we have found that the enhancer returned an non-zero exit code on errors. You can change this so that the error of the enhancers can be detected. btc_es BTC EmbeddedSystems Thank you for this report. Starting build 2.6. 1 _04 the Enhancer exits with non zero code on errors. Note

Generating new activation code gives 500 server error

Trying to generate a new activation code using our site license key gives a 500 error every time. Code generated using version 2.7.4_04 and openjdk 1 .8.0_171. spiffy Jonathan Harley There was a problem, thank you for this report. Please try again now. support Support

Can't open DB-file with explorer, but from within my code it works

): 1 ) my recent db-file, created with the old-version, has been copied to the local db-folder ... -file programatically (from within my code ) without any errors 4) the db doctor ends without error ... ------------------------- The Stacktrace: [2013-04-12 15:58:51 # 1 store] Database 'C:\Users\thomas\Downloads\objectdb-2.4.7_18

FROM clause (JPQL / Criteria API)

a criteria query by using the following code : CriteriaQuery q = cb. createQuery (Country.class); Root ... a criteria query by using the following code : CriteriaQuery q = cb. createQuery (Country.class ... .capital can be built as a criteria query by using the following code : CriteriaQuery q = cb

JPA Named Queries

named queries instead of dynamic queries can improve code organization by separating JPQL query strings from Java code . This practice also enforces the use of query parameters instead of embedding ... (MyEntity.class); After running this code , ObjectDB includes MyEntity when searching for named queries.

Online Backup

file by using the code above could generate a backup whose full path is c:\objectdb\backup ... .io.File("c:\\backup")); backupQuery.getSingleResult(); For instance, the code above could create ... is relative to the ObjectDB home directory on the server. For example, in client-server mode, the code

What are the main benefits of using ObjectDB?

. The ability to store ordinary objects in the database directly can simplify the code significantly. Less (and more simple) code to write, debug and test, as well as a much easier learning curve leads

ObjectDB Object Database Features

- much faster than any other JPA solution. General Highly optimized code (as a result of many profiling ... other managed objects. Transparent update - changes are detected automatically. Code enhancement is optional

[ObjectDB 2.4.1] Unexpected exception (Error 990)

Hi, getting this unexpected exception, would welcome advice: [ObjectDB 2.4. 1 ] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1 .6.0_29 (on Windows 7 6. 1 ... .runners.model.FrameworkMethod$ 1 .runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

In this code : String id = "my key"; ABC itemDb = pm.getObjectById(ABC.class, id); I get this: [ObjectDB 2.4. 1 ] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client VM 1 .6.0_29 (on Windows 7 6. 1 ). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o

jakarta.persistence.criteria.CriteriaBuilder

: absolute value. Since: Jakarta Persistence (JPA) 1 .0 Expression all ( Subquery subquery ) Create ... . Since: Jakarta Persistence (JPA) 1 .0 Predicate and ( Expression x , Expression y ) Create a conjunction ... : and predicate. Since: Jakarta Persistence (JPA) 1 .0 Predicate and ( Predicate... restrictions

GROUP BY and HAVING clauses

SUBSTRING(c.name, 1 , 1 ) FROM Country c GROUP BY SUBSTRING(c.name, 1 , 1 ); The FROM clause iterates ... : SELECT DISTINCT SUBSTRING(c.name, 1 , 1 ) FROM Country c GROUP BY with aggregate functions JPQL supports ... and the number of distinct currencies that those countries use: SELECT SUBSTRING(c.name, 1 , 1 ), COUNT(c), COUNT

JPA Named Queries Annotations

Jakarta Persistence (JPA) provides annotations to define static, reusable queries at the class level, separating query logic from business code . Query definitions Declare named queries using the following annotations: Specifies a static, named query in the Jakarta Persistence Query Language (JPQL

Schema Update

The configuration element supports renaming packages, classes, and fields in ObjectDB databases. This is a complementary operation to renaming or moving these elements in your IDE during source code refactoring. You specify only these schema changes in the configuration file. As explained in

Is ObjectDB better than competing object databases?

, supporting community, forums, IDEs support, tools, books, tutorials and sample code . ObjectDB

ObjectDB - JPA Object Database for Java

- start writing more effective database code using Java classes and objects! Try an ObjectDB / JPA

Defining a JPA Entity Class

classes When you store an entity in the database, its methods and code are not stored

Is ObjectDB better than Object Relational Mapping (ORM)?

databases when necessary - with exactly the same code .

CRUD Database Operations with JPA

Given an EntityManager instance, em , which manages the persistence context for the database, you can use it to store, retrieve, update, and delete objects. Storing new entities The following code fragment stores 1,000 Point objects in the database: em. getTransaction (). begin (); for (int i = 0

Step 3: Add a Context Listener Class

source file with the following code : package guest; import javax.persistence.*; import javax.servlet ... = (EntityManagerFactory)e.getServletContext().getAttribute("emf"); emf.close(); } } The code above: Invokes

Step 3: Add a Context Listener Class

to create the new listener class. Now replace the content of the new source file with the following code ... ().getAttribute("emf"); emf.close(); } } The code above: Invokes the Enhancer to enhance the entity class

Step 2: Entity Class and Persistence Unit

and paste to replace the new source file content with the following code : package guest; import java.io

Step 4: Add a Controller Class

the new Spring Controller class. Now replace the content of the new source file with the following code

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 4: Add a Servlet Class

to create the new servlet class. Now replace the content of the new source file with the following code

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code : package guest; import java.io

Step 3: Define an EJB Session Bean

) class. Now replace the content of the new source file with the following code : package guest; import

Step 3: Define a Spring DAO Component

replace the content of the new source file with the following code : package guest; import java.util.List

Step 2: Entity Class and Persistence Unit

and paste to replace the new source file content with the following code : package guest; import

Step 3: Add a Main Class

to create the class. Copy and paste the following code to the newly created class file: package

Step 3: Add a Main Class

In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste to replace the content of the Main class with the following content: package tutorial; import javax

Step 4: Add a Controller Class

replace the content of the new source file with the following code : package guest; import javax.servlet

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code : package guest; import java.io

Step 2: Define a JPA Entity Class

and paste to replace the new source file content with the following code : package guest; import java.io

Step 3: Define a Spring DAO Component

replace the content of the new source file with the following code : package guest; import java.util