ObjectDB Database Search
1-50 of 87 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.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
|
|
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
|
|
@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 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
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Persist error @ManyToMany how to define correct entities relationships
changes made to Category from Product. The category ID is taken from the webservice Object ID ( unique ... ; lo Hoel New try with @Genreated index and @ Unique category ID, 1 category entity is created in ... .annotations. Unique ; import javax.persistence.CascadeType; import javax.persistence.Entity; import
|
|
jakarta.persistence.TableGenerator.uniqueConstraints
Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to primary key constraints
|
|
jakarta.persistence.TableGenerator.name
Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key
|
|
jakarta.persistence.Table.uniqueConstraints
Jakarta Persistence (JPA) Method in jakarta.persistence.Table UniqueConstraint[] uniqueConstraints (Optional) Unique constraints to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to any constraints specified by the Column
|
|
jakarta.persistence.GenerationType.TABLE
Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness . May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.GenerationType.UUID
Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType UUID Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. May be used to generate primary keys of type UUID or String . Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.NamedEntityGraph.name
names must be unique within the persistence unit. Default: "" Since: Jakarta Persistence (JPA) 1.0
|
|
Problem with @UniqueConstraint
@Index / @ Unique annotations (hopefully in next versions) - you will have to use JDO @Index / @ Unique annotations: http://www.objectdb.com/api/java/jdo/annotations/indexes http://www.objectdb.com/java/jpa/entity/index For example: @ Unique ( members ={"lastName","firstName"}) And for a single
|
|
failure to enforce NOT NULL for java.lang.String
.IDENTITY) private Long id; @ Unique @Persistent(nullValue=NullValue.EXCEPTION) private String username ... successfully violate the @ Unique constraint: [ObjectDB 2.3.7] javax.persistence.RollbackException Failed to commit transaction: Unique constraint (org.wroth.ws.signup.Request[username]) failed
|
|
[ODB1] Chapter 6 - Persistent Objects
; Object IDs and Names Identifying database objects by unique IDs and by names is useful in object ... assigns a unique numeric ID to every persistent object when it is first stored in the database. The ID ... the object exists in the database. If an object is deleted from the database, its unique ID is never used
|
|
@Column length is not working.
I am using objectdb 2.8.3, I have a Entity class with a column that is declared as @Column( unique = true, nullable = false, length = 16) but when i m trying to insert a string ... ; silently ignored by ObjectDB, as specified in the documentation . Regarding unique , you may use @ Unique
|
|
[ODB1] Chapter 8 - ObjectDB Server
SSL you have to generate at least two files: A Keystore file that functions as a unique signature
|
|
Unexpected exception (Error 990) on find
something out. When I change my Id to a unique Column it seams to work without an error and the Doctor reports ... should have no effekt // @Id // with this instead of the unique column it won't work @Column( unique = true, nullable = false, length = 127) private
|