ObjectDB Database Search

1-50 of 200 results

Posting Sample Code

( no persistence unit ). Keep the test as simple as possible - remove unnecessary code (but keep it complete

Configuration and Activation Code in ObjectDB 2.x

for activating the odbee.jar file and got the activation code .It is mentioned in the side that i need to use the activation code using tag in the objectdb.conf file. In 1.x objectDB, we are not using any objectDB ... (properties), JDOHelper.class.getClassLoader()); Can you please let me where should i use the activation code

ObjectDB 2.x is working without any activation code

and it is working without any activation code . Is it is bug in objectdb or it works without activation code also. I am saving some information into the some.odb file and reading the informatin without any problem. What exactly is the activation code for ? Thanks & regards, Binit Bhaskar binitbhaskar

Should derived fields of an EmbeddedId be manually maintained by app code?

field parent. In the following as the code stands I do NOT maintain the derived fields in ... ("cannot find ECompoundKeyMapItem 1"); } However it does not fail on Eclipselink. If I alter the code ... // Code without manual maintenance of derived fields in @EmbeddedId classes... import javax

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

Hitting Evaluation Limit After Code Rollback

In error, we deployed code to production that was compiled on a machine without a valid license key.   We have since rolled the code back, however our other production servers that access the same database files (that were touched by the unsigned code ) are still encountering

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 ... and examples, it is not a compliant coding style. Webel webel Dr Darren Kelly Your observation is correct

Get activation code for a server with no Internet connection

. How do we get the activation code ? Dmitry Zakharov uncol Dmitry Zakharov Run activation on that server. It does not ... that you can open on another computer that is connected to the Internet, in order to retrieve the activation code . Add the activation code that is received on that url to the ObjectDB configuration file of the server. support Support

Deadlock in objectdb code

Running multi-threaded access to an embedded database using JDO, I'm getting a deadlock in objectdb code .  Thread dump attached. sjzlondon Steve Zara Thank you for this report. The thread dump ... in the code .   Is there a convenient way to introduce classes to objectdb at the start of a run

setting activation code in persistence.xml or env file or system properties

Wondering if it's possible to add the activation code either: - in persistence.xml - or in a .env file - or system properties dmoshal David Moshal These options are not supported. However, you can embed the configuration file with the activation code as a resource, e.g. by replacing the objectdb

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    

Gradle-Kotlin Code Contributions

to have a thread where people could post and find Gradle-Kotlin code potentially useful to ObjectDB

Eclipse Public License - v 1.0

code and documentation distributed under this Agreement, and b) in the case of each subsequent ... , if any, and such derivative works, in source code and object code form. b) Subject to the terms ... the Contribution of such Contributor, if any, in source code and object code form. This patent

SELECT clause (JPQL / Criteria API)

code needed. Notice that query results must always be specified explicitly - JPQL does not support ... cell contains the capital city name ( c.capital.name ). The following code demonstrates running ... = capitalName;   } } The following code demonstrates running this query: String queryStr

JPA Class Enhancer

ObjectDB Enhancer is a post compilation tool that improves performance by modifying the byte code ... not need to be enhanced. Enhancement improves efficiency in three ways: Enhanced code enables ... (as explained in  chapter 3 ). This is done by adding special code to enhanced classes

Database Management Settings

per database) requires specifying a valid activation code using an  element.  Activation codes ... the command line. Every machine requires a specific activation code , but multiple elements can be specified in the same configuration. This way the same configuration file (with multiple activation codes

Step 7: Run the Spring Web App

automatic enhancement ( weaving ) in Tomcat it has to be run with ObjectDB as a Java agent ( javaagent:objectdb.jar). When using GlassFish - on the fly enhancement ( weaving ) is automatically enabled

Step 7: Run the Spring Web App

server and open the database file in ObjectDB Explorer : To enable on the fly enhancement ( weaving ... the server node and select Restart. When using GlassFish - on the fly enhancement ( weaving ) is automatically

Apache License, Version 2.0, January 2004

to software source code , documentation source, and configuration files. "Object" form shall mean any form ... to compiled object code , generated documentation, and conversions to other media types. "Work" shall ... , including but not limited to communication on electronic mailing lists, source code control systems

Storing JPA Entity Objects

or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... managed by the EntityManager ) or by commit . Referenced Embedded Objects The following code stores ... that the Address class in the code above is defined as an entity class. In this case, the referenced Address

FROM clause (JPQL / Criteria API)

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

JPA Named Queries

named queries instead of dynamic queries may improve code  organization by separating the JPQL query strings from the Java code . It also enforces the use of query  parameters ... the above code ObjectDB will include MyEntity in searching named queries.

Online Backup

of the original database file. For example, backing up a  test.odb  database file using the code ... .getSingleResult(); The code  above, for instance, could create a backup at  c:\backup ... side. For example, in client-server mode the code  above could create the backup file on the server

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

JPA Query API

with an EntityManager (represented by em in the following code snippets), which serves as a factory ... . createQuery ("SELECT c FROM Country c", Country.class); In the above code , the same JPQL query

ObjectDB Object Database Features

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

Getting an error when adding activation code to conf file

Hello, When I add an activation code to my objectdb.conf file, I get the following exception ... .o.RCL. (RCL.java:36) ... 8 more   If I remove the activation code from my configuration file, I ... with my activation code .  I am adding my activation code to my config file as such:        

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

-file programatically (from within my code ) without any errors 4) the db doctor ends without error

JPA Lifecycle Events

(e.g. in the code above, Object can be replaced by a more specific type). The listener class

JPA Entity Fields

the @Transient annotation). Storing an entity object in the database does not store methods or code

Setting and Tuning of JPA Queries

, JDOQL and ObjectDB extensions. Setting "JPQL" is useful to enforce portable JPA code by ObjectDB

Schema Update

The configuration element supports renaming packages, classes and fields in ObjectDB databases as a complementary operation to renaming or moving these elements in the IDE during source code refactoring. Only these schema changes are specified in the configuration file. As explained in chapter 2

Is ObjectDB better than competing object databases?

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

Logical Operators in JPQL and Criteria API

, cb. isTrue (isInUN), cb. isTrue (isInEU)); In the above  code non Predicate boolean expressions

Retrieving JPA Entity Objects

. Given an EntityManager em , the following code fragment demonstrates the retrieval of an Employee

Literals in JPQL and Criteria Queries

of the entity class (e.g. Country). That is equivalent to Country.class in Java code . Notice

Step 3: Add a Context Listener Class

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

Step 3: Add a Context Listener Class

code : package guest; import javax.persistence.*; import javax.servlet.*; @WebListener public class ... ().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

Eclipse/JPA Spring MVC Web Tutorial

might look slightly different but the code would be the same). The tutorial is based on using a Maven

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

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

but the code would be the same). The Tutorial Steps This tutorial consists of the following steps:

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