ObjectDB Database Search
51-100 of 200 resultsGradle-Kotlin Code Contributions to have a thread where people could post and find Gradle-Kotlin code potentially useful to ObjectDB ... ") } } dependencies { implementation("com.objectdb:objectdb: 2 .9.0") } AlphaOne Ron Brennan ... ("com.objectdb:objectdb: 2 .9.0") } tasks.register ("enhance") { group = "customTasks" mainClass = "com | |
ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`).ElementListenerMap.lambda$fireEvent$ 2 (ElementListenerMap.java:475) at java.base/java.util ... , so the underlying cause of the issue remains unclear. However, if additional type 2 schema changes | |
objectdb explorer in ver 2.2 and 1.0 the new code base, so only a limited version of the Explorer was provided with ObjectDB 2 .0 ... that object explorer has lower functionality than in ver 2 . 2 eg garbarage collector or xml import ... You are right - some important features of ObjectDB 1.0 Explorer are not implemented yet in ObjectDB 2 . 2 | |
Version 2.2.7 build 7/8 issue. Your code should work again with build 2 . 2 .7_09. support Support ... = "address") also helps. My code : public class JavaApplication { public static void main(String | |
Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01) what we did incorrectly or investigate how to fix it ASAP. Source code which causing memory leaks ... (); m_EntityManager.flush(); m_EntityManager.clear(); m_EntityManager.close(); } After executing code ... for mentioned code | |
Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03 After updating some of my code to java 8, enhancement threw "unexpected" exceptions from ... updated ObjectDB from 2 .5.6.x to 2 .5.7_03. Maybe this will save someone a bit of time and effort. - Ron AlphaOne Ron Brennan Actually build 2 .5.6 should also support Java 8 | |
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 | |
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 | |
Storing JPA Entities code stores an Employee entity class instance in the database: Employee employee = new Employee ... the EntityManager , or by commit . Referenced embedded objects The following code stores an Employee instance | |
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 | |
Strings in JPQL and Criteria Queries to 'aly' . SUBSTRING('Italy', 3, 2 ) is evaluated to 'al' . Positions are one-based (as in SQL), not ... ); Expression l2 = cb. locate (path, "x"); Expression l3 = cb. locate (path, param, cb. literal ( 2 )); Expression l4 = cb. locate (path, "x", 2 ); // LOWER(str) and UPPER(str) Expression lower = cb. lower (path | |
Numbers in JPQL and Criteria Queries. For example: MOD(11, 3) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT( 2 ... (+) Expression sum1 = cb. sum (path, param); // 2 expressions Expression sum2 = cb. sum (path, 1000 | |
Compatibility Problems Upgrading from 2.6.9_04 to 2.7.6 it looks like code that has a 2 .6.9 ObjectDb.jar will talk to a 2 .7.6 Database Server. We are not ... incrementally (DB servers to 2 .7.6 followed by code once stabilized)? Thanks, Clinton CAPdev CAP Dev From my latest round of testing it looks like code that has a 2 .6.9 ObjectDb.jar | |
queries under 2.7.6_4 significantly slower than under 2.7.6 we update to the latest version from 2 .7.6. Now we have the problem that we have numerous logs ... since version 2 .7.6 that could possibly effect query execution. Could you please explain or post some of these logs that show deep query plan checks (and are new in 2 .7.6_04)? In addition | |
[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null reporting issue as requested [ObjectDB 2 . 2 .5_02] Unexpected exception (Error 990) Generated ... ) my code (generated by netbeans) for findEntities() is as follows: public List findChartEntities ... you for your report. Build 2 . 2 .5_09 should fix this NullPointerException . support Support Thank | |
[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961) I was experiencing an exception so I did a test to reproduce it. here it is. [ObjectDB 2 . 2 ... .java:28) The code is as follows: package com.reproduce.error; import java.math ... O'Hare Thank you for your report and for the test. Please try build 2 . 2 .6_03 that should fix this exception. support Support | |
ObjectDB 2.6.2 windows in the Explorer. Changed the Enhancer to return non zero exist code on errors ( issue #1635 ... a synchronization bug ( issue #1643 ). Fixed a regression of build 2 .6.1_03 in supporting interfaces in | |
ObjectDB License . You are encouraged to test ObjectDB before purchasing a license. Server License ObjectDB 2 .x Server License costs £500 and includes all version 2 .x updates. A server license covers one installation ... a Server License Site License ObjectDB 2 .x Site License costs £2,500 and includes all version 2 .x | |
ObjectDB 2.0.2 Fixed a bug in queries on embedded objects in C/S mode. Fixed a bug in setting log directory path (missing URL decoding). Fixed a bug in automatic byte code enhancement in Java EE server. Fixed a bug in multi variable queries. | |
JPA Entity Fields its methods or code . This state is reflected by its persistent fields, including fields inherited from | |
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 | |
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 | |
Is ObjectDB better than Object Relational Mapping (ORM)? databases when necessary - with exactly the same code . | |
Eclipse Distribution License - v 1.0 Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice | |
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 | |
JPA Relationships Annotations Relationships define associations between entities. They are represented In Java code by attributes (persistent fields or properties) in persistent classes that hold a reference or a collection of references to other entities. Jakarta Persistence (JPA) provides annotations to configure | |
Paths and Types in JPQL and Criteria API expressions in the preceding code can be divided into two main groups: FROM variable expressions | |
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 1: Create a Maven Web Project.objectdb.com com.objectdb objectdb 2 .8.1 org.eclipse.persistence javax.persistence 2 .1.0 javax.transaction jta 1.1 javax.servlet servlet-api 2 .5 provided javax.servlet.jsp jsp-api 2 .1 provided org ... .springframework spring-orm 3.0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2 . 2 org.aspectj aspectjweaver | |
Step 1: Create a Maven Web Project; com.objectdb objectdb 2 .8.1 org.eclipse.persistence javax.persistence 2 .1.0   ... ; javax.servlet servlet-api 2 .5 provided   | |
Eclipse/JPA Spring MVC Web Tutorial slightly different but the code would be the same). The tutorial is based on using a Maven project | |
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 4: Add a Servlet Class to create the new servlet class. Now replace the content of the new source file with the following code | |
Getting Started with JPA and Eclipse well (dialog boxes and menus might look slightly different but the code would be the same). This tutorial consists of the following steps: | |
NetBeans/JPA Web Application Tutorial with other NetBeans versions as well (dialog boxes and menus might look slightly different but the code | |
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 | |
NetBeans/JPA Spring MVC Web Tutorial slightly different but the code would be the same). The tutorial is based on using a Maven project | |
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 | |
Eclipse/JPA Web Application Tutorial with other Eclipse versions as well (dialog boxes and menus might look slightly different but the code | |
Getting Started with JPA This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields - x and y . If you already know JPA - the source code will be straightforward | |
Step 3: Define a Spring DAO Component replace the content of the new source file with the following code : package guest; import java.util | |
Step 4: Add a Servlet Class of the new source file with the following code : package guest; import java.io.IOException; import javax | |
Step 3: Define an EJB Session Bean with the following code : package guest; import java.util.List; import javax.ejb.Stateless; import javax.persistence | |
Step 4: Add a Servlet Class the new servlet class. Now replace the content of the new source file with the following code : package | |
Which API should I use - JPA or JDO?, tutorials and sample code . When to prefer JDO JDO might be preferred when portability to other object |