Internal Website Search

101-150 of 200 results

Eclipse plugin problem (using ObjectDB as a separate bundle)

Hello support, I have seen multiple attempts to correct similar errors as in the title ... , everything is persisted as expected - I used ObjectDB explorer to view my data. Now, any other attempt to persist ... on - including globally ( as in JDO) - see the manual . support Support Hello support, I am NOT using JPA

Object as parameter results in exception

is valid since objects such as a Company instance are expected to be passed to the query as ... the primary key is used as a literal, which means that the query has to be compiled every time ... will be coded as Criteria queries. Willks William Your original post is of a great value

@MappedSuperclass and @Transient not working as I expected

; But here is the problem: The base class of my entity hierarchy is annotated as @MappedSuperclass ... that should fix the transient field as well as the NPE. support Support So are the tables that appear ... superclasses ( as well as abstract entity classes) do not store data just schema. Usually data in

Type ... is not defined as an entity (@Entity is missing) (error 302)

.lab.data.bacti.CultureRqst is not defined as an entity (@Entity is missing) (error 302) at com ... projects to use objectdb. I tried placing objectdb as a variable and then all projects refer to this variable but then this does not work.   The only solution it seems is to: 1. Package objectdb as

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

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

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

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

Insert time increases as db grows.

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

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

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

Running JPA Queries

should be ran using the getResultList method, as we expect to receive multiple objects in return ... . The query result collection functions as any other ordinary Java collection. For example, a  ... an additional method, getSingleResult , as a more convenient method when exactly one result object is expected

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

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

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

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

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

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

. It is marked knowingly as CRITICAL by me because it makes the ObjectDB system unusable for a real project ... it, which is just as bad. I attach a running project illustrating the problem, as well as screenshots ... carefully that its fields (such as name) are null, it is in fact a broken Project object (or looks

Unexpected query token - AS

, artifact FROM com.btc.ep.engine.bl.internal.dmos.EngineInstanceImpl AS instance JOIN instance.artifacts AS instanceEntryArtifactSet , com.btc.ep.engine.bl.internal.dmos.ArtifactImpl AS artifact LEFT JOIN artifact.activatedGoals AS artifactActivatedGoals LEFT JOIN artifact.activatedAssumptions AS

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

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

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

ObjectDB License Agreement [ver. 2.0.4]

is distributed and only as part of the Customer's product ("The Product"). The Product is not a Database ... " AS IS" without a warranty of any kind. All express or implied representations and warranties

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

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

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

What is ObjectDB?

or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL.

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.

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, 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, JRuby for Ruby and Quercus for PHP

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

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:

Report Generation with BIRT and JPA

This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as simple as possible - we will use the basic  points.odb ObjectDB database file from the Getting

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 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 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

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

Java EE 6 JPA Tutorial - Eclipse Project

the  guestbook-jee6 directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run

Spring MVC JPA Tutorial - Eclipse Project

-spring directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run On Server

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

JPA Web App Tutorial - Eclipse Project

; guestbook-web directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select Run As Run On Server

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 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

.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

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