ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.Embedded

Jakarta Persistence (JPA) Annotation Type jakarta.persistence. Embedded Implemented Interfaces: Annotation Target: Method, Field Declares a persistent field or property of an entity whose value ... may be used to override mappings declared or defaulted by the embeddable class. Example: @ Embedded

jakarta.persistence.metamodel.Attribute.PersistentAttributeType.EMBEDDED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.Attribute.PersistentAttributeType EMBEDDED Embeddable class attribute Since: Jakarta Persistence (JPA) 1.0

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

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

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

Possible issue with Spring JPA and Embedded

Hello, I'm having some fun with Spring and embedded objects. I have need to embed some small ... how to go about proving where the issue is. (I can see the embedded objects in the database with the explorer, but they are NEVER returned) If I change my embedded class to be an entity it all works

config file for embedded database

Hi, I'm going back to embedded mode after some time with client/server mode. Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the explorer - still need a way to view (view only) an open embedded database. dmoshal David Moshal The same procedure

Storing JPA Entities

of other persistable types can be stored in the database only as embedded objects in containing ... the EntityManager , or by commit . Referenced embedded objects The following code stores an Employee instance ... of persistable types other than entity classes are automatically stored as embedded objects in

JPA Persistable Types

can be stored directly in the database. Other persistable types can be embedded in entity classes as ... can be stored in the database only as embedded objects, that is, as part of a containing entity. A class ... classes are always embedded in other entities and do not require separate space allocation or separate

JPA Attributes Annotations

(Lazy/Eager) and nullability. Specifies a persistent field or property as an embedded attribute. The embedded state is stored in the same table as the owning entity. Specifies a collection field or property as an attribute containing a collection of embedded objects. This is used for "one-to-many

JPA Connections and Transactions

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

JPA Entity Fields

are explained in Chapter 3 . You can mark a persistent field of an embeddable type with the @ Embedded ... class Person { @ Embedded Address address; } Inverse fields Inverse (or mappedBy ) fields contain

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

JPA Metamodel Attributes

to the persistence provider. An enumeration defining the categorization of the attribute: BASIC , EMBEDDED , MANY ... , wrappers, Strings), embedded objects, and associations (reference fields and properties

Query Parameters in JPA

is constructed for each execution. Second, embedding strings in queries is unsafe and can expose ... and then embedded in the query string as-is. A malicious user could provide JPQL expressions instead

Database Management Settings

The configuration element specifies back-end (database engine) settings for the server and for embedded mode. The default configuration file contains the following element: The element The element specifies the database file and page size settings: The initial attribute specifies the initial size

SELECT clause (JPQL / Criteria API)

with the containing entities. Therefore, embedded objects that are retrieved directly by a result path expression

Database Replication and Clustering

on a server can function as a master database in a cluster, but databases in embedded mode

Index Definition

embeddable classes, because the fields of an 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

A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query strings from Java code. This practice also enforces the use of query parameters instead of embedding

JPA Criteria Queries

: Represents a query embedded within another query (for example, inside a WHERE clause). Unlike a top-level

Deleting JPA Entities

is committed. Any embedded objects that the entity contains are also deleted. If the transaction is rolled

jakarta.persistence.Convert

of an embedded type or inherited mapped superclass. It is not necessary to use the Basic annotation (or ... must not be specified. Alternatively, the Convert annotation may be applied to: an embedded attribute ... of an inherited basic or embedded attribute. In these cases, the attributeName must be specified

jakarta.persistence.AttributeOverride

a mapped superclass or to an embedded field or property to override a basic mapping or id mapping ... of embedding , a dot ( . ) notation form must be used in the name element to indicate an attribute within an embedded attribute. The value of each identifier used with the dot notation is the name

jakarta.persistence.AssociationOverride

embedded within another embeddable class), AssociationOverride is applied to the field or property ... within the embeddable class. To override mappings at multiple levels of embedding , a dot ( . ) notation syntax must be used in the name element to indicate an attribute within an embedded attribute

jakarta.persistence.ManyToOne

the relationship attribute within the embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property. Example 1: @ManyToOne(optional ... getCustomer() { return customer; } Example 2: @Entity public class Employee { @Id int id; @ Embedded JobInfo

jakarta.persistence.EmbeddedId

. The embedded primary key type must implement Annotation.java.lang.annotation.Annotation/equals(Object ... those attributes of the embedded id that do not correspond to the relationship to the parent entity. Relationship mappings defined within an embedded primary key type are not supported. Example 1: @Entity public

[ODB1] Chapter 6 - Persistent Objects

system types. Embedded Objects An embedded object is an object that is stored in the database as part of a containing object. Objects stored explicitly by makePersistent( ... ) are never embedded . Objects stored as a result of persistence by reachability can be embedded . By default, system types

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 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 computers 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 9 - ObjectDB Explorer

only when accessing a local database using embedded mode. 9.4  Tools and Threads