About unique

91-100 of 146Refresh
Forum
2

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
Forum
2

ID format in objectdb 2.x for JDOHelper.getObjectId

IDs where always unique long numbers, so these numbers could represent objects uniquely ... ), and consequently, objects are represented uniquely by the combination of (type, object ID
Forum
2

Problem with Composite indices

class Client { @Index (unique = "true") private String name; } and a User class ... to one Client has an unique Email address but only in relation to a specific Client (e.g. Client "a"->User "d ... User How can I realize such constraint? Kind regards Markus This uniqueness constraint
Forum
2

Queries are slow on a large database

:     
Issue
2

Unexpected exception (Error 990) on find

will have to remain open until a test case is submitted. I've found something out. When I change my Id to a unique ... // with this instead of the unique column it won't work     @Column(unique = true, nullable = false
Forum
2

how to implement insert ignore in objectdb?

I want to implement Insert ignore in Objectdb. means if a column is declared as Unique but in case ... is the default when unique is not specified, so the question is unclear. But he said the column is specified as unique, right? ObjectDB ignores UniqueConstraint anyway. Unfortunately the question
Forum
1

Are indexes implicitly created for relationships?

Do the following annotations @OneToMany @ManyToOne @ManyToMany @OneToOne imply @Index  ? Thanks, Carl   Actually these annotations (except @ManyToMany) should apply @Unique ... aware of). You should use the @Index or @Unique annotations explicitly to set indexes. FastModel
Forum
1

Composite indexes

that returns the smallest subset of unique records (like for example "isPublished" which is either true or false, then "room" which has 7-8 unique values etc...) #2. Can I use the same field as