ObjectDB Database Search

1-50 of 200 results

Embedded Object inside another embedded object - is that possible?

I have an entity with an embedded object - it works fine. Now I am trying to add an embedded object inside the first level embedded object - but it does not seem to store it and does not throw ... off that - finally found the solution - the 2nd level embedded class only had final fields

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id

Embedded in JDO metadata not working in objectDB 2.x ?

1 (with an OID for every instance) and all other classes were embedded (so without extent ... of RackGroupList embedded inside the instance of ProjectPart and the elements inside the RackGroupList are embedded too.   I did not change the metadata when I was moving from ObjectDB 1 to 2, I

collection of embedded objects

1. In general, are there any restrictions of the use of @ Embedded objects in collections, compared to @Entity ? 2. If you have a large nested collection of @ Embedded objects, and you remove ... through collections of @ Embedded objects more expensive (time) than searching through collections of @Entity ? Thanks

Embedded Database Replication

As we all know, embedded databases out perform server databases on every occasion. The problem with embedded databases is that theyre difficult to scale. If I were to create an entire enterprise web application within a single jar file using embedded tomcat and embedded objectdb I would run into

Changing existing objects from Entity to Embedded

classes should be embedded -only as they are stored only in a HashMap of another Entity. So as first ... btw ? So I left these classes NOT embedded in JDO, introduced copies of these classes in another package which were defined as embedded -only, made a migration utility which read the original objects

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: @ Embedable public class ... embedded objects after retrieving from the db? Does this also mean that referencing an already embedded ... Entity class instead of my Embedded class? thanks! Alex quasado Alexander Adam This is the normal

Single Server License and Embedded Mode

We have an application that runs on a single server in embedded mode to write server million records.  Is it possible to use the single server license for embedded mode use?  I've looked ... , if it is possible.  I would prefer to stick with embedded mode for the speed. Since we only have a single

Using explorer with a live embedded db

I want to use ObjectDB explorer with a running embedded db. This issue:  http://www.objectdb ... an explorer on the same machine, trying to connect in both embedded and client-server mode. I could connect when I stopped my program that embedded the db. Is     still supposed to work

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

.persistence.Embeddable; import javax.persistence. Embedded ; import javax.persistence.EmbeddedId; import ... 1: Works not: if field AId.b is not @ Embedded annotated.  *  *         case 2: Works: if field AId.b is @ Embedded annotated.  *   *      

Convert embedded database to server

Hello, What is the right way to convert an embedded database to a server one ? As a result ... Sylvain No need to convert. Same odb file is used in both client-server and embedded modes. Just copy ... . What are the pros and cons between an embedded database ( with remote connection enabled ) and a real

Embedded mode usage question

Hi there ! We're currently considering to try object db as a an embedable database ... your site/docs whether the object db embedded mode is intended for single-user / single thread access only or not. Is it ok to use object db in an embedded (non server) mode for a web app or web

run several embedded systems on one server, problem with double used port

we want to run several embedded systems on one server. In principle this is working ... that port for each embedded system hgzwicker Hans-Georg Zwicker Are you using embedded -server mode? In ... : "$objectdb/db/my.odb;port=9999" If you don't need the embedded server then you can disable it in

Weird behaviour with enhanced classes and embedded entities

entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing ... (MyEmbeddedEntity embedded ){       embeddedEntities.add( embedded );  

Embedded & Activation & Scalation

. So, we'd like to embedded odb into each instance instead for now and point each to the same database ... embedded mode that way. In embedded mode only a single process can access the database ... only limitation. Is there a way to spawn multiple server instances " embedded " into our app

Non Embedded byte[]

I am trying to understand the " embedded =false" for JDO byte[] as described in ObjectDB 1.0 Manual ... : @PersistenceCapable class MyImage{ boolean isCurrent; @Persist( embedded ="false")byte[] imageData ... embedded , stored as a single "blob" as a unique ObjectDB persisted object?  (The section 4.4 talks

Storing JPA Entity Objects

of other persistable types can only be stored in the database embedded in containing entities (as field ... managed by the EntityManager ) or by commit . Referenced Embedded Objects The following code stores ... (); Instances of persistable types other than entity classes are automatically stored embedded in

EnumConstRef jakarta.persistence.metamodel.Attribute$PersistentAttributeType.EMBEDDED

JPA Enum Constant in javax.persistence.metamodel.Attribute $PersistentAttributeType EMBEDDED Embeddable class attribute Since: JPA 2.0

AnnotationRef jakarta.persistence.Embedded

JPA Annotation Embedded Target: METHOD, FIELD Implemented Interfaces: Annotation Declares a persistent field or property of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable . The AttributeOverride , AttributeOverrides

Database Server

of TCP/IP communication between the client and the server it is usually slower than embedded mode. In embedded mode, ObjectDB is integrated as a library and runs within the application process, which is much more efficient. As a result, embedded mode should be preferred when possible. For example

JPA Persistable Types

can be stored in the database directly. Other persistable types can be embedded in entity classes as fields ... class can only be stored in the database as embedded objects, i.e. as part of a containing entity ... ;String zip; } Instances of embeddable classes are always embedded in other entity objects and do not

Database Connection using JPA

a persistence unit name. To use ObjectDB embedded directly in your application ( embedded mode ... client-server mode) or a local connection to a local database file (in embedded mode

JPA Entity Fields

with the @ Embedded annotation, requiring ObjectDB to verify that the type is indeed embeddable: @Entity public class Person { @ Embedded Address address; } Inverse Fields Inverse (or mapped by) fields

ObjectDB License Agreement [ver. 2.0.5]

that guarantees that any user of the Product and the embedded Software will be committed to the terms ... and provisions to the entire Product, including the embedded Software. 5. The Software is provided "AS

Query Parameters in JPA

, embedding strings in queries is unsafe and can expose the application to JPQL injection attacks. Suppose that the name parameter is received as an input from the user and then embedded in the query string

ObjectDB Object Database Features

Client-Server mode (TCP/IP). Secure Client-Server mode ( SSL over TCP/IP ). In process embedded database ... ). Map keys and values are indexable. Nested paths inside embedded objects are indexable. Indices

ObjectDB Overview

mode and Embedded mode. Single JAR with no external dependencies. Database is stored as a single ... . Can easily be embedded in applications of any type and size. Tested with Tomcat, Jetty, GlassFish

Database Explorer

Opening a Database Connection To open a local database file in embedded mode use the  File Open Embedded ...  command and select a local database file. To open a database in client-server

Database Management Settings

The configuration element specifies back end (database engine) settings that are relevant on the server side and in embedded mode. The default configuration file contains the following element:    The element The element specifies the database file and page size settings: The initial

SELECT clause (JPQL / Criteria API)

copies that are not associated with the containing entities. Therefore, embedded objects

Database Replication and Clustering

(but not in embedded mode) can function as a master database in a cluster.  Recording

Index Definition

when using embeddable classes as fields of embedded object are stored as part of the containing entity

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

rather than embedding literals dynamically into the query string and results in more efficient queries. @NamedQuery

Literals in JPQL and Criteria Queries

parameter values. Literals should only be embedded in JPQL queries when a single constant value

Deleting JPA Entity Objects

object is physically deleted from the database when the transaction is committed. Embedded objects

Entity Management Settings

The configuration element specifies front end settings that are relevant on the client side and in embedded mode. The default configuration file contains the following element: The element The element specifies enhancement related settings: The agent attribute (whose value is "true" or "false

BIRT/ODA ObjectDB Driver

connection URL - either embedded (e.g. c:\points.odb ) or client-server (e.g.  objectdb

Posting Sample Code

method (preferred over JUnit). Use embedded mode to connect to the ObjectDB database directly

General Settings and Logging

in embedded mode. Specifying an inactivity timeout may solve firewall related issues. In general

JPA Primary Key

have to be retrieved by their primary key as shown in the Retrieving Entities section. Embedded Primary Key

JPA Web App Tutorial - Maven Project

.xml file) and port 8080 has to be available for the Jetty embedded server. No need to download ... embedded server automatically. When the Jetty server is ready - open your browser at http://localhost:8080

Step 7: Run the Spring Web App

) and follow the instructions. Alternatively you can run the web application using the embedded ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file

Spring MVC JPA Tutorial - Maven Project

), and port 8080 has to be available for the Jetty embedded server. It is not necessary to download ... embedded server automatically. When the Jetty server is ready - open your browser at http

Step 7: Run the Spring Web App

the embedded Maven Jetty plugin: Right click the project node and select Custom Goals... Enter  ... in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As Run on Server Finish : Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g. at domains\domain1\eclipseApps

Step 3: Create an ObjectDB Data Source

Start tutorial ). Specify an ObjectDB connection url - either embedded (e.g. c:\points.odb ) or client

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As Run on Server Finish : Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the  GuestServlet node (in the [Projects] window), selecting  Run File , and then clicking  OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File , and then clicking  OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory