Internal Website Search

51-100 of 144 results

Immediately retrieve unique id

Immediately retrieve unique id

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

How to apply constraints in collection attributes of entity.

How to apply constraints like unique , not null ...etc in collection attribute of a entity. Example ... to implement unique and notnull constraints on PhoneNumbers, means PhoneNumbers must not be duplicate or null How to do this?   Thanks Manoj Manoj Kumar Maharana For unique you can use

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

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

javax.persistence.MapKeyJoinColumn

of the entity that is the value of the map. Since: JPA 2.0 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

.0 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

javax.persistence.Column

to be in the primary table. Since: JPA 1.0 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. This constraint applies

javax.persistence.JoinColumn

is for an element collection, the name of the collection table. Since: JPA 1.0 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

@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

ID format in objectdb 2.x for JDOHelper.getObjectId

Bhaskar In ObjectDB 1.x object IDs where always unique long numbers, so these numbers could represent objects uniquely without a type. ObjectDB 2.x, on the other hand, supports many other types of object IDs (primary keys), and consequently, objects are represented uniquely by the combination of (type

javax.persistence.TableGenerator

. Since: JPA 1.0 String name default null (Required) A unique generator name that can be referenced by ... [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table

javax.persistence.Index

2.1 boolean unique default false (Optional) Whether the index is unique . Since: JPA 2.1

javax.persistence.JoinTable.uniqueConstraints

JPA Annotation Attribute in javax.persistence.JoinTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. Defaults to no additional constraints. Since: JPA 1.0

javax.persistence.TableGenerator.name

JPA Annotation Attribute in javax.persistence.TableGenerator String name default null (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

javax.persistence.JoinTable

) Unique constraints that are to be placed on the table. These are only used if table generation is in

javax.persistence.Table.uniqueConstraints

JPA Annotation Attribute in javax.persistence.Table UniqueConstraint [] uniqueConstraints default {} (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

javax.persistence.Table

. Since: JPA 1.0 UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints

javax.persistence.OneToOne

( name="CUSTREC_ID", unique =true, nullable=false, updatable=false) public CustomerRecord

javax.persistence.CollectionTable.uniqueConstraints

JPA Annotation Attribute in javax.persistence.CollectionTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. Since: JPA 2.0

javax.persistence.CollectionTable

.0 UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints

javax.persistence.MapKey

other than the primary key is used as a map key then it is expected to have a uniqueness constraint

javax.persistence.SecondaryTable.uniqueConstraints

JPA Annotation Attribute in javax.persistence.SecondaryTable UniqueConstraint [] uniqueConstraints default {} (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

javax.persistence.SequenceGenerator.name

JPA Annotation Attribute in javax.persistence.SequenceGenerator String name default null (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

javax.persistence.SequenceGenerator

which the sequence object is to start generating. Since: JPA 1.0 String name default null (Required) A unique

javax.persistence.EntityManager

JPA Interface EntityManager Interface used to interact with the persistence context. An EntityManager instance is associated with a persistence context. A persistence context is a set of entity instances in which for any persistent entity identity there is a unique entity instance

javax.persistence.SecondaryTable

) Unique constraints that are to be placed on the table. These are typically only used if table

javax.persistence.TableGenerator.uniqueConstraints

JPA Annotation Attribute in javax.persistence.TableGenerator UniqueConstraint [] uniqueConstraints default {} (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. Since: JPA 1.0

javax.persistence.UniqueConstraint

JPA Annotation 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= @UniqueConstraint(columnNames={"EMP_ID", "EMP_NAME"}) ) public

javax.persistence.GenerationType.TABLE

JPA Enum Constant in javax.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness . Since: JPA 1.0

javax.persistence.GenerationType

provider must assign primary keys for the entity using an underlying database table to ensure uniqueness

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

javax.jdo.Query

of results, and flags indicating whether the query result is unique and whether the query can be modified ... the type namespace. Imported type names must be unique . When used (e.g. in a parameter declaration ... declareParameters hides the name of a candidate class field of the same name. Parameter names must be unique

javax.jdo.annotations.Value

if the implementation supports multiple types. Since: JDO 2.1 String unique default "" Whether the element column(s) contents should be considered unique Since: JDO 2.1 String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1 ForeignKeyAction updateAction default

javax.jdo.annotations.Key

types. Since: JDO 2.1 String unique default "" Whether the element column(s) contents should be considered unique Since: JDO 2.1 String uniqueKey default "" The name of the unique key constraint

javax.jdo.annotations.Join

tables). Since: JDO 2.1 String unique default "" Whether the join column is unique . Since: JDO 2.1 String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

javax.jdo.annotations.Element

String unique default "" Whether a unique constraint should be generated or assumed. Since: JDO 2.1 String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

javax.jdo.annotations.Index

unique default "" Whether this index is unique Since: JDO 2.1

javax.jdo.annotations.ForeignKey

for the type. Since: JDO 2.1 String unique default "" Whether this foreign key is unique . Since: JDO 2.1

javax.jdo.annotations.Query

resultClass default void.class Result class into which to put the results. Since: JDO 2.1 String unique default "" Whether the query returns a single unique result. Since: JDO 2.1 String unmodifiable

javax.jdo.annotations.Join.uniqueKey

JDO Annotation Attribute in javax.jdo.annotations.Join String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

javax.jdo.annotations.Key.uniqueKey

JDO Annotation Attribute in javax.jdo.annotations.Key String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

javax.jdo.annotations.Value.uniqueKey

JDO Annotation Attribute in javax.jdo.annotations.Value String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

Query.executeWithArray(parameters) - JDO Method

. The element passes the filter if there exist unique values for all variables for which the filter

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

specification, uniqueness , result specification, and grouping specification. The association

Query.setFilter(filter) - JDO Method

expression evaluates to true . The user may denote uniqueness in the filter expression by explicitly

PersistenceManager.getObjectId(pc) - JDO Method

of the specified JDO instance. The identity is guaranteed to be unique only in the context

javax.jdo.annotations.Element.uniqueKey

JDO Annotation Attribute in javax.jdo.annotations.Element String uniqueKey default "" The name of the unique key constraint to generate. Since: JDO 2.1

javax.jdo.PersistenceManager

is guaranteed to be unique only in the context of the JDO PersistenceManager that created the identity