Internal Website Search

1-50 of 200 results

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

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 ... of embeddable classes are always embedded in other entity objects and do not require separate space

Database Connection using JPA

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

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 ... terms and provisions to the entire Product, including the embedded Software. 5. The Software is provided

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

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

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 mode

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

[ODB1] Chapter 4 - JDO Metadata

can change the default, as demonstrated by fields f3 and f4 . embedded (true | false) The embedded ... of the referred object should be stored as part of the referring object, as an embedded object . Embedded ... and cannot be shared by references from multiple objects. In addition, embedded objects of persistent classes

[ODB1] Chapter 6 - Persistent Objects

explicitly, including system types. Embedded Objects An embedded object is an object that is stored in ... ( ... ) are never embedded . Objects stored as a result of persistence by reachability can be embedded . By default, system types are embedded and user defined types (like the Address instance above) are not

[ODB1] Chapter 1 - About ObjectDB

can operate in one of two modes: embedded mode or client server mode. Client-Server Mode In client ... , because the database server manages an automatic lock mechanism. Embedded Mode In embedded mode ... process. Client-Server Mode vs. Embedded Database Mode The embedded database mode is easier to use

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

[ODB1] Chapter 5 - JDO Connections

using embedded mode, specify either its absolute path or its relative path. The JDOHelper ... The javax.jdo.option.ConnectionURL property specifies the database location and whether embedded mode or client server mode should be used to access that database. To use embedded mode, an absolute path

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

[ODB1] Chapter 8 - ObjectDB Server

these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database ... implementation including support for embedded mode. In order to use client server mode, you have to install

[ODB1] Chapter 7 - JDOQL Queries

class is used, and the candidate collection contains all the non embedded instances of the candidate ... classes in queries, the user code must be available. In embedded mode, user classes are always available

[ODB1] Chapter 9 - ObjectDB Explorer

only when accessing a local database using embedded mode. 9.4  Tools and Threads The "Thread" tabbed