About unique

81-90 of 142Refresh
JPA Doc
3

SecondaryTable.uniqueConstraints

Annotation Element javax.persistence.SecondaryTable UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are typically only used if table generation is in effect. These constraints apply in addition to any constraints specified by the Column
JPA Doc
3

SequenceGenerator.name

Annotation Element javax.persistence.SequenceGenerator String name (Required) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Since: JPA 1.0
JDO Doc
3

setFilter(filter)

. The user may denote uniqueness in the filter expression by explicitly declaring an expression
JPA Doc
3

Table.uniqueConstraints

Annotation Element javax.persistence.Table 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 any constraints specified by the Column and JoinColumn
JPA Doc
3

TableGenerator.name

Annotation Element javax.persistence.TableGenerator String name (Required) A unique generator name that can be referenced by one or more classes to be the generator for id values. Since: JPA 1.0
JPA Doc
3

TableGenerator.uniqueConstraints

Annotation Element javax.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. Defaults to no additional constraints. Default value: {} Since: JPA 1.0
Forum
3

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

="ArchiveTestRuns">         
Forum
3

Persist error @ManyToMany how to define correct entities relationships

made to Category from Product. The category ID is taken from the webservice Object ID (unique ... (); } } }       New try with @Genreated index and @Unique category ID, 1 category entity is created in the table ... .annotations.Unique; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax
Forum
2

failure to enforce NOT NULL for java.lang.String

=GenerationType.IDENTITY) private Long id; @Unique @Persistent(nullValue=NullValue.EXCEPTION ... in a row without a clean between them does successfully violate the @Unique constraint: [ObjectDB 2.3.7] javax.persistence.RollbackException Failed to commit transaction: Unique constraint (org
Forum
2

Problem with @UniqueConstraint

/UniqueConstraint Until JPA defines Java object model level @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