Internal Website Search
1-50 of 144 resultsIndex 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 | |
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 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 | |
javax.persistence.MapKeyJoinColumn.unique JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn boolean unique default false (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. Since: JPA 2.0 | |
javax.persistence.MapKeyColumn.unique JPA Annotation Attribute in javax.persistence.MapKeyColumn boolean unique default false (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 | |
javax.persistence.Column.unique JPA Annotation Attribute in javax.persistence.Column boolean unique default false (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 | |
javax.persistence.JoinColumn.unique JPA Annotation Attribute in javax.persistence.JoinColumn boolean unique default false (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 | |
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 | |
javax.persistence.Index.unique JPA Annotation Attribute in javax.persistence.Index boolean unique default false (Optional) Whether the index is unique . Since: JPA 2.1 | |
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 | |
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 | |
[ODB1] Chapter 4 - JDO Metadata identity supported by ObjectDB. To enforce unique values in a field you can define a unique index as ... (with a unique object ID). The embedded-key and embedded-value indicate whether the keys and the values of a map ... . Field f0 has an ordinary index and field f1 has a unique index. A field that has a unique index | |
[ODB1] Chapter 6 - Persistent Objects object). 6.2 Object IDs and Names Identifying database objects by unique IDs and by names ... . Object IDs ObjectDB assigns a unique numeric ID to every persistent object when it is first stored in ... as long as the object exists in the database. If an object is deleted from the database, its unique | |
javax.jdo.annotations.Unique JDO Annotation Unique Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database unique constraint. Used for database schema generation to create unique constraints. Also used to reorder database operations when flushing changes | |
javax.jdo.annotations.Uniques JDO Annotation Uniques Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a group of unique constraints. Since: JDO 2.1 Public Annotation Attributes Unique [] value default null The unique constraints. Since: JDO 2.1 | |
javax.jdo.annotations.Uniques.value JDO Annotation Attribute in javax.jdo.annotations. Uniques Unique [] value default null The unique constraints. Since: JDO 2.1 | |
javax.jdo.annotations.Unique.table JDO Annotation Attribute in javax.jdo.annotations. Unique String table default "" Table for the unique constraint. This is needed iff annotating a type where this unique constraint is not for the primary table for the persistent class or interface. Since: JDO 2.1 | |
javax.jdo.annotations.Unique.deferred JDO Annotation Attribute in javax.jdo.annotations. Unique String deferred default "" Whether this unique constraint is deferred until commit. Since: JDO 2.1 | |
javax.jdo.annotations.Unique.columns JDO Annotation Attribute in javax.jdo.annotations. Unique Column [] columns default {} Columns that compose this unique constraint. Since: JDO 2.1 | |
javax.jdo.annotations.Unique.members JDO Annotation Attribute in javax.jdo.annotations. Unique String[] members default {} Member (field and property) names that compose this unique constraint. Since: JDO 2.1 | |
javax.jdo.annotations.Unique.name JDO Annotation Attribute in javax.jdo.annotations. Unique String name default "" Name of the unique constraint. Since: JDO 2.1 | |
javax.jdo.annotations.Join.unique JDO Annotation Attribute in javax.jdo.annotations.Join String unique default "" Whether the join column is unique . Since: JDO 2.1 | |
javax.jdo.annotations.Key.unique JDO Annotation Attribute in javax.jdo.annotations.Key String unique default "" Whether the element column(s) contents should be considered unique Since: JDO 2.1 | |
javax.jdo.annotations.Value.unique JDO Annotation Attribute in javax.jdo.annotations.Value String unique default "" Whether the element column(s) contents should be considered unique Since: JDO 2.1 | |
Query.setUnique(unique) - JDO Method JDO Method in javax.jdo.Query void setUnique ( boolean unique ) Specify that only the first result of the query should be returned, rather than a collection. The execute method will return null if the query result size is 0. Parameters: unique - if true, only one element is returned Since: JDO 2.0 | |
javax.jdo.annotations.Index.unique JDO Annotation Attribute in javax.jdo.annotations.Index String unique default "" Whether this index is unique Since: JDO 2.1 | |
javax.jdo.annotations.ForeignKey.unique JDO Annotation Attribute in javax.jdo.annotations.ForeignKey String unique default "" Whether this foreign key is unique . Since: JDO 2.1 | |
javax.jdo.annotations.Element.unique JDO Annotation Attribute in javax.jdo.annotations.Element String unique default "" Whether a unique constraint should be generated or assumed. Since: JDO 2.1 | |
javax.jdo.annotations.Query.unique JDO Annotation Attribute in javax.jdo.annotations.Query String unique default "" Whether the query returns a single unique result. Since: JDO 2.1 | |
JDO Predefined ID Classes An object ID is a combination of a persistence capable class and a primary key. It provides a unique representation of a persistent object. The following classes serve as predefined ID classes ... instances of MyClass ) can be represented uniquely by StringIdentity , as a combination of a class and a string value. | |
[ODB1] Chapter 8 - ObjectDB Server at least two files: A Keystore file that functions as a unique signature of your server. This file |