ObjectDB Database Search

101-150 of 200 results

multiple LEFT JOINs do not work as expected

.organisationId='root') OR ($4.organisationId='root'))) As I understand, since I use LEFT Joins ... return the organisations directly under root. The root organisation has null as it's parent. The log ... . Please try to modify it to demonstrate a different query that doesn't work as expected: import java.util

LAZY @ManyToOne field functions as EAGER

closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b ... , when it is marked as @ManyToOne(fetch=FetchType.LAZY) ?   package com.greensoft.objectdb.test ... and ManyToOne relationships only in enhanced classes. If you run your test as recommended with enhancement

Access objectdb.conf as class loader resource

Hi, is it possible configure ObjectDB so it searches the objectdb.conf file as a class loader ... at the expected path , then it is loaded as a resource from: META-INF/objectdb.conf Default configuration is included in objectdb.jar as a resource at that path. You may try putting your jar file

ObjectDB as JDBC resource or custom realm

it would be great if a realm like that came bundled with ObjectDB, possibly as an OSGi module. EDIT Is it possible to use ObjectDB as a JDBC Resource in GlassFish? That way maybe I could make JDBCRealm. Thanks in

Insert time increases as db grows.

the same results: insertion time grows as db grows. 4410 Arsenii I've just set enhancer as javaagent

About LIMIT and OFFSET as query tokens

Hi,   I would like to know why the query tokens OFFSET AND LIMIT are not available and if they will be in a near future. Is there any equivalent way to get, from the database, the object at given position i as well as a given number of objects that follow such object? Thanks you in advance

starting objectdb as a service in linux

Hi, how to start objectdb as a service from linux command line. Every time i close the terminal (putty) servers stops. Running it with the & parameter dont help. we are starting the database ... command or the start command? Using the start command it should start as a separate process.   support Support

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap { (...) }    

Using of ConcurrentHashMap as attribute

holding a  ConcurrentHashMap instance but it will be loaded as java.util.HashMap when the entity is retrieved from the database. support Support

InternalException - reporting as requested

InternalException - reporting as requested

Enhancer option -s works not as expected

and Entity2 enhanced as expected. ... com.objectdb.Enhancer -noaware -s com.btc.base.* Entity1 and Entity2 enhanced as expected. BUT: ... com.objectdb.Enhancer -noaware -s com.btc.* Nothing enhanced ... . The enhancer supports specifying classes for enhancement either as packages and classes or as files

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... .MST.aT(MST.java:522) at com.objectdb.o.MST. aS (MST.java:454) at com.objectdb.o.MST.U1(MST.java:427

Detached Entity Objects

serialized object) is constructed as a detached entity object since is not associated with any ... instance, which is then automatically detached as well. Cascading may continue recursively when applicable ... to the referenced Address instance, which is then automatically merged as well. Cascading may continue recursively

JPA Metamodel API

types  (which are referred to as managed types) in the persistent object model ... user defined embeddable classes. IdentifiableType is as a super interface of: MappedSuperclassType ... to as attributes). For example: // Get all the attributes - including inherited: Set attributes1

Chapter 4 - JPA Queries (JPQL / Criteria)

The JPA Query Language (JPQL) can be considered as an object oriented version of SQL. Users familiar with SQL should find JPQL very easy to learn and use. This chapter explains how to use JPQL as well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA

Running JPA Queries

the database. The query should be ran using the getResultList method, as we expect to receive multiple ... and the warning is avoided. The query result collection functions as any other ordinary Java collection ... provides an additional method, getSingleResult , as a more convenient method when exactly one result

JPA Named Queries

carefully to avoid collision (e.g. by using the unique entity name as a prefix). It makes sense to add ... to the same entity class requires wrapping them in a @NamedQueries annotation, as follows: @Entity ... still might fail if that named query is defined on a class that is still unknown to ObjectDB. As

BIRT/ODA ObjectDB Driver

The ObjectDB BIRT/ODA driver is an extension of the open source Business Intelligence and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... with BIRT and JPA tutorial. Driver Installation The driver is available as an Eclipse for Java EE

Posting Sample Code

( no persistence unit ). Keep the test as simple as possible - remove unnecessary code (but keep it complete and runnable). You may use the following example as an initial template for your test case: package

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as  explained in chapter 2 , by: Retrieving ... . Therefore, it is a good practice to use a separate EntityManager for UPDATE queries. As with any ... Country AS c SET c.population = c.population * 11 / 10 The UPDATE clause defines exactly one range

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table:   Set 1 ... which NULL represents an unknown value and expressions that include an unknown value are evaluated as ... comparison of any two values that belong to the same group as detailed above. Therefore, for example

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

About Us

fortune 500 companies as well as smaller companies and start-ups, governments and defence forces

Database Doctor

. Modifying the database file externally not through ObjectDB (e.g. by malicious software such as ... to the database file (e.g. my.odb as shown above). Diagnosis results are printed to the standard output

Server Configuration

when connecting to the database ( as explained in the JPA Overview section in chapter 3). The max attribute ... of ObjectDB databases that the server manages. The $objectdb prefix, if specified ( as demonstrated

Is ObjectDB better than Object Relational Mapping (ORM)?

As noted above, using ObjectDB instead of a relational database and ORM combination is easier and leads to better performance. ORM tools, however, are very useful where the use of a relational database is mandatory (e.g. as a result of a customer request or when a new application

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, Kotlin, Groovy and Scala. It can also be used with other languages, such as Python, JavaScript, Ruby and PHP, but currently only with their JVM implementations (e.g. Jython for Python, GraalVM for JavaScript

Is ObjectDB scalable? What are its limitations?

ObjectDB is highly scalable and can manage efficiently databases in a wide range of sizes, from a few Kilobytes to hundreds of Gigabytes and even Terabytes. ObjectDB can be used in small embedded single user applications as well as in heavy loaded multi threaded multi user applications. ObjectDB

JPA Annotations for Classes

policy ( as explained in chapter 3 ): Another JPA class annotation defines an ID class: ID classes are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly ( as fields) or indirectly ( as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

ObjectDB License Agreement [ver. 2.0.4]

and only as part of the Customer's product ("The Product"). The Product is not a Database Management ... and provisions to the entire Product, including the embedded Software. 5. The Software is provided " AS

Step 2: Entity Class and Persistence Unit

Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name ... with the following new content: com.objectdb.jpa.Provider Now ObjectDB should be used as a JPA provider

Step 2: Entity Class and Persistence Unit

  Next ). Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Next to create the new ... as a JPA provider with the specified database url. The next step is adding a Spring DAO Component class that will manage Guest entity objects.

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window ... value in a specified range: SELECT p.x as x, p.y as y FROM Point p WHERE p.x BETWEEN :low AND :high Use

Step 5: Design a BIRT Report Chart

. In the [Select Chart Type] tab select Tube as the chart type and click Next . In the [Select Data] tab - enter row["y"] as the Y series and  row["x"] as the X series, (use Ctrl + Space in

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create

Step 1: Create a Web Project

.g. Guestbook ). Select Apache Tomcat v6.0 as the Target runtime. Note: You may have to add Tomcat 6 as a new server by clicking the New Runtime... button . Follow the instructions and specify the path

Step 3: Add a Context Listener Class

Other... Select Web Web Application Listener and click Next . Enter GuestListener as the class name ... and creates an EntityManagerFactory instance and stores it as an application scope attribute in

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Finish

Step 1: Create a Web Project

Name (e.g. Guestbook ) and click Next . Select Apache Tomcat 6 as the Server. Note: You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify

Step 2: Define a JPA Entity Class

) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name. Enter Guest as the class name - use exactly that case sensitive class name. Click Finish

Step 3: Add a Context Listener Class

as the class name - use exactly that case sensitive class name. Click Next and then Select ... it as an application scope attribute in the servlet context - when the web application starts

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... is adding a JSP page that will serve as the application view and will produce the guestbook output.

Step 1: Create a Java EE 6 Web Project

a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button

Step 4: Add a Servlet Class

GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create ... annotation). The next step is adding a JSP page that will serve as the application view and will produce the guestbook output.

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace the content of the index.jsp file (which serves as the default front page) with the following redirection to the controller path: Assuming that Tomcat 6.0 is installed as a server in your NetBeans

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity object, and all Guest entity objects ... addition, the demonstrated application is available as a Maven project:

Step 1: Create a Maven Web Project

; maven-archetype-webapp as a filter, select  maven-archetype-webapp in the artifact list and click ... the project node and checking that the  Run As Run on Server command is available

JDO Predefined ID Classes

a unique representation of a persistent object. The following classes serve as predefined ID classes ... but should not be used as the type of a primary key field in a persistence capable class. For example ... instances of MyClass ) can be represented uniquely by StringIdentity , as a combination of a class and a string value.

Which API should I use - JPA or JDO?

is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as the primary API, and if necessary, switch to JDO as a secondary API for special additional features