ObjectDB Database Search
1-50 of 200 resultsPosting 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) performance and can sometimes reduce the amount of Java code needed. Note that query results ... ( c.name ), and the second is the capital city name ( c.capital.name ). The following code ... = capitalName; } } The following code demonstrates how to run this query: String queryStr = "SELECT | |
JPA Class Enhancer to be enhanced. Enhancement improves efficiency in three ways: Enhanced code enables efficient tracking ... explained in Chapter 3 ). Special code is added to enhanced classes that automatically notifies ObjectDB whenever a persistent field is modified. Enhanced code enables lazy loading of entities | |
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 | |
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 | |
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 | |
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 | |
JPA Query API em in the following code snippets). The EntityManager serves as a factory for both Query ... ("SELECT c FROM Country c", Country.class); In the preceding code , the same JPQL query | |
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 | |
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 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 | |
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 | |
[ODB1] Chapter 6 - Persistent Objects the following code : pm.currentTransaction().begin(); Person person = new Person("George", "Bush"); Address ... code is legal and equivalent to the code above: Person person = new Person("George", "Bush"); Address ... ( ... ) ). Persistence By Reachability The Address instance in the code above also starts out as a transient object | |
[ODB1] Chapter 5 - JDO Connections a PersistenceManagerFactory The following code demonstrates how to obtain a PersistenceManagerFactory instance: import java ... , and a value for that property. The two properties that are set in the code above are usually essential: javax ... .getPersistenceManagerFactory(properties); } finally { in.close(); } Notice that the code above may throw | |
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 | |
[ODB1] Chapter 2 - A Quick Tour a list of two strings "Hello World 0" and "Hello World 1". Program Source Code The program consists ... Source Code In addition to the two files from the previous section ( Person.java and package.jdo ... , is obtained using JDO portable code (slightly more complicated than the equivalent code in section 2 | |
[ODB1] Chapter 9 - ObjectDB Explorer at the moment of query execution with Java code that implements the query. You can use that code to export JDOQL queries that you test in the Explorer into your Java code . Refreshing the Cache ... only when the code of these methods is available using the specified classpath. The "Server Configuration | |
[ODB1] Chapter 3 - Persistent Classes store methods and code . Only the state of the object as reflected by its persistent fields is stored ... the byte code of compiled classes. Classes to be enhanced must be located in class files and not in ... the byte code of these classes, and the result is classes that do implement the PersistenceCapable | |
[ODB1] Chapter 7 - JDOQL Queries from this query: query.closeAll(); The complete code for printing all the people whose age is 18 or ... classes in queries, the user code must be available. In embedded mode, user classes are always available ... the field from the parameter. This code demonstrates the execution of a query with two different | |
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 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 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: | |
[ODB1] Chapter 1 - About ObjectDB code . The JDO API is available today for most relational database systems (RDBMS), e.g. Oracle, IBM ... such mapping makes it possible to write clean Java code , but still requires some familiarity ... of Java objects in a database, visually, without writing a single line of code . Many object databases | |
[ODB1] Chapter 4 - JDO Metadata element-type attributes because it is not specified in the Java code . For fields f0 and f1 ... ); The first argument to Utilities.startIndexBuilder( ... ) ( pm in the code |