ObjectDB Database Search
1-50 of 116 resultsIndex Definition @Index and @ Unique annotations to define indexes. Note that JPA's @Index annotation 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 indexedField2 | |
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 | |
@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 | |
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 | |
Immediately retrieve unique idImmediately 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 a primary key for each new entity. These generated values are unique at the database level ... a separate generator for each type hierarchy, so the generated values are unique | |
ObjectDB Object Database Features sessions). Unique data structures and algorithms (as a result of years of R&D). Outperforms competing ... in ObjectDB is unique compared to other Objec-Oriented Databases. Primary Key Modes Hidden | |
JPA Primary Key databases. Entity identification Every entity in the database is uniquely identified and can be retrieved by the combination of its type and its primary key. Primary key values must be unique for each | |
JPA Named Queries Annotations). It is defined on an entity or mapped superclass and assigned a unique name for retrieval | |
JPA Persistable Types") public class MyEntity { } Entity names must be unique . When two entity classes in different | |
JPA Metamodel Attributes . Represents an attribute typed as a java.util.Set , implying unique elements without a specific order | |
Retrieving JPA Entities and primary key Every entity can be uniquely identified and retrieved by the combination of its class | |
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, you should choose names carefully to avoid collisions, for example, by using the unique entity name as | |
JPA Value Generation Annotations uniqueness . Use this generator when the underlying database doesn't support sequences or identity | |
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 | |
JPA ORM Mapping Annotations. A container annotation for defining multiple @SecondaryTable entries. Specifies a unique constraint | |
JPA Components Annotations You can use Jakarta Persistence (JPA) annotations to mark classes as persistent and to configure their behavior. Persistent type definitions Use these annotations to assign a role to a persistent class: Marks the class as an entity. Entities are persistent domain objects with a unique identity | |
GROUP BY and HAVING clauses, where each group has a unique combination of values. Aggregate calculations ( COUNT , SUM , AVG , MAX , MIN | |
SSL Configuration, you must generate at least two files: A keystore file that contains the server's unique signature. This file | |
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 |