ObjectDB Database Search

1-50 of 112 results

Index Definition

definition uses JDO’s @Index and @ Unique annotations to define indexes (JPA's @Index  cannot be applied to fields): import javax.jdo.annotations.Index; import javax.jdo.annotations. Unique ; @Entity public class EntityWithSimpleIndex { @Index String indexedField1; @Index ( unique ="true") int

jakarta.persistence.MapKeyColumn.unique

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn boolean unique (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column

jakarta.persistence.MapKeyJoinColumn.unique

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyJoinColumn boolean unique (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. Default: false Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinColumn.unique

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn boolean unique (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. It is not necessary

jakarta.persistence.Column.unique

Jakarta Persistence (JPA) Method in jakarta.persistence.Column boolean unique (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column

jakarta.persistence.Index.unique

Jakarta Persistence (JPA) Method in jakarta.persistence.Index boolean unique (Optional) Whether the index is unique . Default: false Since: Jakarta Persistence (JPA) 1.0

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person @Entity @ Unique (members ... ;    }     }     @Entity     @ Unique ... to commit transaction: Unique constraint (com.objectdb.test.bug.forum.T1522$Person[name,surname

How to apply Unique constraints on embedded fields?

How to apply Unique constraints on embedded fields? @Entity public class A { private B b ... ; how can i apply unique in values?   Thanks   Manoj Manoj Kumar Maharana Uniqueness ... A . Something like: @Entity @ Unique (members={"b.c.values"}) @Entity public class A {     private B b

Unique contraint with 2 members

I am trying to do the following: @javax.persistence.Entity public class Account { @ Unique () private String name; @ Unique (members={"SalesforceID","sport"}) private String SalesforceID; private String sport; ... } The first Unique constraint works. On commit, an exception is thrown if an Account

How to create a Unique constraint?

Hi, I'm trying to create a unique constraint. Here is a simple example: @Entity public class Account { @Id @GeneratedValue private long id; @Index( unique ="true") private String name; } The code runs ... need to do to have a Unique constraint? Thanks, Carl   FastModel Ben Schreiber On a hunch, I tried

Adding new unique columns

What is the best practice for when you need to add a new unique column to an existing database? Simply adding the column with the @ Unique annotation will result in "Attempt to reuse an existing ... , THEN add the @ Unique constraint.  I'm hoping there's a better way, like providing a means

How can allow multiple null value in a Unique column.

I have a entity Person have 2 fields Name( Unique ) and PhoneNumbers. I wants to allow null value ... , so indeed, for a unique field you cannot have more than one  null value. If you need multiple null values then the field should not be defined as unique . support Support How can i apply Unique in not null value

Privacy Policy

For the purposes of this Privacy Policy: Account  means a unique account created for You to access ... Data may include information such as Your Device's Internet Protocol address (e.g. IP address), unique ... automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID

@Unique added afterward is not taken into account

Hello, I encounter an issue with the @ Unique annotation. The annotation was added on a given ... were already added to the table). As a consequence the unique constraint is not taken into account ... " the @ Unique constraint on all object already present in the table, including those made before annotation

Bug with unique constraint exception not resulting in transaction roll back

I'm using ObjectDB 2.5.6_02 and running into a bug with a JDO @ Unique constraint.  I'm using JPA in general. I have an EJB persisting two entities with @TransactionAttribute ... for the field with the @ Unique constraint. The unique constraint causes an exception as expected, but I

Immediately retrieve unique id

Immediately retrieve unique id

Is ObjectDB better than competing object databases?

: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in ... is also unique in supporting features that are usually available only in relational databases. For example

Auto Generated Values

for every new entity object. These generated values are unique at the database level and are never recycled ... per type hierarchy, so generated values are unique only per type hierarchy. The Sequence Strategy

ObjectDB Object Database Features

profiling sessions). Unique data structures and algorithms (as a result of years of R&D). Outperforms ... Support of primary keys in ObjectDB is unique compared to other Objec-Oriented Databases. Primary Key

JPA Primary Key

the database is uniquely identified (and can be retrieved from the database) by the combination of its type and its primary key. Primary key values are unique per entity class. Instances of different entity

JPA Persistable Types

") public class MyEntity { } Entity names must be unique . When two entity classes in different packages

Retrieving JPA Entity Objects

object can be uniquely identified and retrieved by the combination of its class and its primary key

What is the Java Persistence API (JPA)?

you can keep your application portable. The unique benefit of using ObjectDB is that the overhead of an intermediate ORM

JPA Named Queries

carefully to avoid collision (e.g. by using the unique entity name as a prefix). It makes sense to add

Defining a JPA Entity Class

is an ordinary Java class. The only unique JPA addition is the @Entity annotation, which marks the class as

Is ObjectDB a NoSQL Database?

ObjectDB is a unique NoSQL database. It doesn't have the known disadvantages and limitations of NoSQL technology, which are weak query capabilities and lack of ACID (atomicity, consistency, isolation, durability). Unlike other NoSQL solutions, ObjectDB provides full support of rich complex queries

GROUP BY and HAVING clauses

: The properties that are used for grouping (each group has a unique value combination). Aggregate calculations

SSL Configuration

that functions as a unique signature of your server. This file contains general details (such as a company name

jakarta.persistence.Index

key has a unique constraint with an index created automatically. See Also: Table SecondaryTable ... , following the BNF rule column_list given above. Since: Jakarta Persistence (JPA) 1.0 boolean unique (Optional) Whether the index is unique . Default: false Since: Jakarta Persistence (JPA) 1.0 String

jakarta.persistence.JoinColumn

of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean unique (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. It is not necessary

jakarta.persistence.MapKeyColumn

unique (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds

jakarta.persistence.MapKeyJoinColumn

unique (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field

jakarta.persistence.Column

Persistence (JPA) 1.0 boolean unique (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key

jakarta.persistence.OneToOne

maps a unique foreign key relationship, either a foreign key column or columns with a unique constraint ... (optional = false) @JoinColumn(name = "CUSTREC_ID", unique = true, nullable = false, updatable

Can not have unique index on Byte Array

I found that it is impossible to insert a record with @ Unique byte[] var; after initial insertion ... to commit transaction: Unique constraint (id.co.ecoin.test.objectdb.ObjectDbTest$OdbByteArray[key ... .objectdb.o.UserException: Unique constraint (id.co.ecoin.test.objectdb.ObjectDbTest$OdbByteArray

jakarta.persistence.GenerationType

database table to ensure uniqueness . May be used to generate primary keys of type Long , Integer ... must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier

jakarta.persistence.TableGenerator

explains how to use TableGenerator . Annotation Elements String name (optional) A unique generator ... [] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are only used if table

Unique Constraint Ignored

If i annotate a getter with: @Column( unique = true) it's simply ignored. If i use @ Unique it works perfectly. mosi0815 Ralph Moser Usually ObjectDB silently ignores ORM annotations. This is not ... more difficult - setting unique by using the @Column annotation is now supported (starting build 2.3.2_04). support Support

2.9.x query issue with @Unique constraint

Query doesn't return results in versions 2.9.x when there's a unique property in (where/and .. or ..) clause. It ignores the or operator. @Entity public class User { .. @ Unique private String ... (probably generated for the @ Unique annotation you mentioned). However, both query plans seems correct

NoResultException: No matching results for a unique query

I am very often getting a "com.objectdb.o._NoResultException: No matching results for a unique query" when modifying my already persisted entities within a transaction. I cannot replicate it however because it happens infrequently. The weird thing is that the entity nevertheless gets comitted

strange object unique ID

at a customer the unique object id of one class changed dramatically from a nurmal number to an incredible number which, for sure, cannot be used any more, see screenshot the database is available here https://www.dropbox.com/scl/fi/564zgf7ubm1yh6kp2wxoi/coreSystemDb.7z?rlkey

jakarta.persistence.JoinTable

) Since: Jakarta Persistence (JPA) 2.1 UniqueConstraint[] uniqueConstraints (Optional) Unique

jakarta.persistence.MapKey

then it is expected to have a uniqueness constraint associated with it. The MapKeyClass annotation is not used

jakarta.persistence.NamedEntityGraph

entity. Entity graph names must be unique within the persistence unit. Default: "" Since: Jakarta

jakarta.persistence.Entity

, a one-to-one association usually maps to a unique foreign key relationship (sometimes using a shared primary key

jakarta.persistence.UniqueConstraint

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table. Example: @Entity @Table( name = "EMPLOYEE", uniqueConstraints

jakarta.persistence.CollectionTable

UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table

jakarta.persistence.SecondaryTable

UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table

jakarta.persistence.SequenceGenerator

. Annotation Elements String name (Optional) A unique generator name that can be referenced by one or

jakarta.persistence.Table

UniqueConstraint[] uniqueConstraints (Optional) Unique constraints to be placed on the table. These are only used