Internal Website Search

1-50 of 72 results

Index Definition

fields (not on primary key / version fields). Composite Index A composite index is an index ... . Composite indexes on multi part paths are also allowed: @Entity @Index ( members ={"addresses.city ... a composite index must have the same length. Therefore, the following index definition is invalid

JPA Primary Key

required. But ObjectDB also supports explicit standard JPA primary keys, including composite primary ... . Reference to an entity object. Composite Primary Key A composite primary key consists of multiple ... An alternate way to represent a composite primary key is to use an embeddable class: @Entity public class

composite index not used in query

we defined a composite index for class Action: @Index(name="ssst",members={"startDate","state ... and a.startDate ?1)) the composite index is not used, query plan:  Step 1: Process Action ... AND a.type = 0 AND a.startDate ?1 If the composite index was added to an existing database

Composite indexes

(...) }   Here are my questions regarding composite indexes : #1. First of all - the first member in composite index should be a field that is most commonly used in WHERE clauses or maybe the filed ... . kborkowski Karol Borkowski 1. Field Order in a Composite Index The usability of a composite index depends

Multi part paths in a composite index must have the same length

wrapper. Multi part paths in a composite index must have the same length. Therefore, the following ... You are right. There is no real technical issue with enabling such an index. A composite index ... ;   System.setProperty("objectdb.temp.flexible- composite -index", "true");   

Composite index support collection

Hello, is there any chance that you support composite indices with fields and collections combined in the future? We need such feature in our application and would be very happy to see it in the future :) Best regards Markus doppelrittberger Markus Ritter It may be supported in future versions

Error opening database with ObjectDB Explorer when using composite key

Hi, When I use a composite key in an entity and fill this database with this entity, ObjectDB explorer throws me an error when opening this database saying something about an invalid ID class and not able to locate a field. I can however retrieve entries from my program. An example program

Merge failure with composite primary key

.3.7_21 should fix it. The composite primary key issue is unclear, since switching to a single

Problem with Composite indices

has to be enforced by the application. Unfortunately a composite index on a field + a collection is not allowed

Composite Index error 328

Composite Index error 328

Database Replication and Clustering

should represent a user on the slave server rather than on the master server. Finally, a composite URL ... ;password=b" ); A composite URL contains two or more database URLs separated by '|' . Usually

ObjectDB Object Database Features

( composite ) indices. Collection and array elements are indexable (extremely fast JOIN queries ... - a single @Id field. Composite primary key - multiple @Id fields or a @EmbeddedId field

SELECT clause (JPQL / Criteria API)

The SELECT clause may also define composite results: SELECT c.name, c.capital.name FROM Country AS c

Is ObjectDB better than competing object databases?

almost every application. ObjectDB supports user defined primary keys including composite primary keys

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean expressions out of simple JPQL boolean expressions. Logical Operators ObjectDB supports 2 sets of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR

Numbers in JPQL and Criteria Queries

value is numeric, e.g. LOCATE, LENGTH. as composite arithmetic expressions that use operators

Defining a JPA Entity Class

. On the other hand, ObjectDB also supports explicit  JPA primary keys ,  including composite

JPA Annotations for Classes

are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the " composite key" feature in JPA. Let's see what I am doing : @Entity public class Book { @EmbeddedId BookId id; } @Embeddable Class BookId { Integer bookIdCountry; ECountry country

possible index required for improving query performance

in the existing index). Notice that a composite index can be used as a single index of the first ... third element, so the order of elements in a composite index makes a difference. support Support Hi, I've ... when there are multiple indexes? In this scenario we have a composite index on 2 fields and a single index

javax.persistence.MapsId

element specifies the attribute within a composite key to which the relationship attribute ... EmbeddedId for composite key @Embeddable public class DependentId { String name; long empid ... within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity's primary key. Since: JPA 2.0

Broken @ManyToOne reference

,   just tried the fixed version. Two notes: 1. For a composite key an instance of the target ... class to represent composite primary keys in a portable JPA way. support Support Apparently ... ID is a composite .   Regards, Vladimir tsichevski Vladimir Tsichevski Thank you for this report

java.lang.NullPointerException when using ORDER BY

the composite index with the unexpected entry, so both issues may be solved together. support Support I ... .200:9085' AND r.callDirection == 0)) Both mapToCli and callDirection are part of composite indices ... of (different) composite indices. Is it a rule that we must use fields that are part of an index in

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

It seems that the query is executed using a composite index on the  mapFromCli field. Could you please provide details on composite indexes that include that field? Unexpectedly, one of the values in ... the exact cause. support Support The mapFormCli filed is a member of a number of composite indices

More Efficient Primary Keys

. We already need the key before the entities are persisted so that we can build even references. a) Composite ... for the database engine. In both cases it is a composite primary key with the same size and structure. (b ... if a composite of two longs can produce any performance gain over a single string. support Support

Efficient query on EmbeddedId

.field1 and entity.id.field2 form a composite index together, in the order in ... , which has a similar effect of defining a composite index on ordinary non ID fields (although not exactly ... , that a query on field2 may be slower than a query on the second field (non ID) in an ordinary composite

Queries are slow on a large database

. A composite index in which the first component is  logTestRunId and the second is Id ... and the performances are much better. I will try composite index later. However there is one thing I haven't

Index on a low cardinality column

. However it could still help in certain cases (e.g., a count query, as part of a composite index ... . Therefore, composite indexes, including with boolean fields, can be powerful if they cover all the needed

javax.persistence.MapKey.name

. If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary key class is used as the key. Since: JPA 1.0

javax.persistence.MapKey

. If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary key class is used as the key. Since: JPA 1.0

javax.persistence.PrimaryKeyJoinColumns

JPA Annotation PrimaryKeyJoinColumns Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys. Example: ValuedCustomer subclass @Entity @Table(name="VCUST") @DiscriminatorValue("VCUST") @PrimaryKeyJoinColumns

javax.persistence.JoinColumns

JPA Annotation JoinColumns Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies the mapping for composite foreign keys. This annotation groups JoinColumn annotations for the same relationship. When the JoinColumns annotation is used, both the name and the referencedColumnName

javax.persistence.IdClass

JPA Annotation IdClass Target: TYPE Implemented Interfaces: Annotation Specifies a composite primary key class that is mapped to multiple fields or properties of the entity. The names of the fields or properties in the primary key class and the primary key fields or properties of the entity

javax.persistence.MapsId.value

JPA Annotation Attribute in javax.persistence.MapsId String value default "" (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity's primary key. Since: JPA 2.0

javax.persistence.MapKeyJoinColumns

JPA Annotation MapKeyJoinColumns Target: METHOD, FIELD Implemented Interfaces: Annotation Supports composite map keys that reference entities. The MapKeyJoinColumns annotation groups MapKeyJoinColumn annotations. When the MapKeyJoinColumns annotation is used, both the name

javax.persistence.EmbeddedId

JPA Annotation EmbeddedId Target: METHOD, FIELD Implemented Interfaces: Annotation Applied to a persistent field or property of an entity class or mapped superclass to denote a composite primary key that is an embeddable class. The embeddable class must be annotated as Embeddable

javax.persistence.PersistenceException

Hi I am trying to get a basic EclipseRCP project working with Objectdb. At the very first line in creating a View public void createPartControl( Composite parent) {     EntityManagerFactory emf =          Persistence

Extended mapping-definitions

proper indexes. You can also use composite indexes that consist of the className field

ObjectDB Clustering VS Hadoop Hbase

using composite urls the order of the urls defines the connection priority. No need to restart

significant performance decrease

also composite indexes: on classIdentifier + type on classIdentifier + objectName support

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

: RequestBean []: Created: com.greensoft.entity.Activity [null](TEST: activity 4 (AND composite )) INFO: RequestBean []: Persisted: com.greensoft.entity.Activity [21](TEST: activity 4 (AND composite ... []: Updated: com.greensoft.entity.Activity [21](TEST: activity 4 (AND composite )) INFO: RequestBean

combined index not used

the composite index but eventually selected another query plan. We will try to understand that selection and provide a fix. support Support The reason for not using the composite index was found ... the best combination of using the composite index on these 4 fields. Increasing the threshold from 1024

Problem using "and" for joined entities and indexed fields

you have a composite index, as suggested in #2 above, which is the right index for this query.   ... . However, it would be significantly inferior to using a composite index. This bug was probably always there unreported, as collections of embedded objects are not used very frequently, and when used, composite indexes are the natural

Sort of very large objects - out of memory

;This requires a fix, but meanwhile, adding a composite index can solve the problem: @Entity   ... entry in the composite index (instead of scanning the entire index). Composite indexes

ObjectDB 2.3.1

a ClassCastException in using a composite index in queries ( issue #521 ). Fixed handling derived Id fields in composite PK embedded IDs. Fixed default ObjectDB home path ( $objectdb ) in NetBeans RCP

Automatic Switch to Replicated Server Limitations

ObjectDB supports master-slave replication, with the ability to switch connections automatically to another server when a server goes down, by specifying a composite url . Currently this feature has the following limitations: The first server in the composite url has to be available

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

and a "secondary" h:form in the sidebar (see FYI only attached XHTML composite expertise_level.xhtml

ObjectDB 2.6.1

Added an option to disable temporary file deletion . Added support of using entity classes with missing dependent types. Added support of composite indexes with components of different lengths . Fixed a bug in reflection mode in detecting changes after flush ( issue #1602 ). Fixed

ObjectDB 2.3.2

Fixed a bug in "p.id IN :ids" queries. Fixed a bug in handling NOT =  queries ( issue #536 ). Fixed ClassCastException and NullPointerException in using a composite index in queries ( issue #531 ). Fixed Explorer bugs: editing embedded objects and using connection urls. Fixed

ObjectDB needs "insert ignore"

). Use an ID class or an embedded ID as the second parameter if  you have  a composite