Home » Search

About unique

1-10 of 139Refresh
Manual
118

Index Definition

@Index and @Unique annotations to define indexes: import javax.jdo.annotations.Index; import javax.jdo.annotations.Unique; @Entity public class EntityWithSimpleIndex { @Index String indexedField1; @Index(unique="true") int indexedField2; // unique @Index(name="i3") int indexedField3
JDO Doc
69

javax.jdo.annotations.Unique

javax.jdo.annotations Annotation Unique Target: Classes and fields (including property get methods) Annotation for a database unique constraint. Used for database schema generation to create unique constraints. Also used to reorder database operations when flushing changes to avoid unique
JDO Doc
60

javax.jdo.annotations.Uniques

javax.jdo.annotations Annotation Uniques Target: Classes Annotation for a group of unique constraints. Since: JDO 2.1 Unique[] value The unique constraints. The unique constraints. Returns: The unique constraints Since: JDO 2.1
JDO Doc
59

Unique.table

Annotation Element javax.jdo.annotations.Unique String table 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. Returns: the table on which the unique constraint is defined Default value: "" Since: JDO 2.1
JDO Doc
59

Uniques.value

Annotation Element javax.jdo.annotations.Uniques Unique[] value The unique constraints. Returns: The unique constraints Since: JDO 2.1
JPA Doc
58

Column.unique

Annotation Element javax.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. This constraint applies in
JDO Doc
58

Element.unique

Annotation Element javax.jdo.annotations.Element String unique Whether a unique constraint should be generated or assumed. Returns: whether a unique constraint should be generated or assumed Default value: "" Since: JDO 2.1
JDO Doc
58

ForeignKey.unique

Annotation Element javax.jdo.annotations.ForeignKey String unique Whether this foreign key is unique. Returns: whether this foreign key is unique Default value: "" Since: JDO 2.1
JDO Doc
58

Index.unique

Annotation Element javax.jdo.annotations.Index String unique Whether this index is unique Returns: whether this index is unique Default value: "" Since: JDO 2.1
JDO Doc
58

Join.unique

Annotation Element javax.jdo.annotations.Join String unique Whether the join column is unique. Returns: whether the join column(s) is(are) is unique Default value: "" Since: JDO 2.1