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

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

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

javax.persistence.Embedded

JPA Annotation Embedded Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies a persistent field or property of an entity whose value is an instance of an embeddable class ... defaulted by the embeddable class. Example: @ Embedded @AttributeOverrides({ @AttributeOverride(name

javax.persistence.metamodel.Attribute$PersistentAttributeType.EMBEDDED

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

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.4]

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

javax.jdo.annotations.Embedded

JDO Annotation Embedded Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation to define that the object is embedded into the table of the owning object. Corresponds to the xml element " embedded ". Since: JDO 2.1 Public Annotation Attributes Persistent

javax.jdo.annotations.Embedded.nullIndicatorColumn

JDO Annotation Attribute in javax.jdo.annotations. Embedded String nullIndicatorColumn default "" The column in the embedded object used to judge if the embedded object is null. Since: JDO 2.1

javax.jdo.annotations.Persistent.embedded

JDO Annotation Attribute in javax.jdo.annotations.Persistent String embedded default "" Whether this member is embedded . Since: JDO 2.1

javax.jdo.annotations.Key.embedded

JDO Annotation Attribute in javax.jdo.annotations.Key String embedded default "" Whether this key is embedded . Since: JDO 2.1

javax.jdo.annotations.Value.embedded

JDO Annotation Attribute in javax.jdo.annotations.Value String embedded default "" Whether this value is embedded . Since: JDO 2.1

javax.jdo.annotations.Embedded.members

JDO Annotation Attribute in javax.jdo.annotations. Embedded Persistent [] members default {} Members for this embedding . Since: JDO 2.1

javax.jdo.annotations.Element.embedded

JDO Annotation Attribute in javax.jdo.annotations.Element String embedded default "" Whether this element is embedded . Since: JDO 2.1

javax.jdo.annotations.Embedded.ownerMember

JDO Annotation Attribute in javax.jdo.annotations. Embedded String ownerMember default "" The member in the embedded object that links back to the owning object where it has a bidirectional relationship. Since: JDO 2.1

javax.jdo.annotations.Embedded.nullIndicatorValue

JDO Annotation Attribute in javax.jdo.annotations. Embedded String nullIndicatorValue default "" The value in the null column to interpret the object as being null. Since: JDO 2.1

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