Internal Website Search
51-100 of 200 resultsUninitialized primary key (id = 0) Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (image.Meta:0) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) I check the db by explorer.jar, and find the only one record | |
Internal ObjectDB error by read the primary keyInternal ObjectDB error by read the primary key | |
Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices Hello, I have a problem with inserting of many entities. We use strings as primary key and indices ... ? See both examples. btc_es BTC EmbeddedSystems Correction. The case with strings as primary key ... programs demonstrate well that automatic long primary keys are indeed much more efficient | |
Object creation in the Explorer requires automatically set primary keys The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support | |
Merge throw exception "Attempt to reuse an existing primary key value" Hi, if Id = 0 I got javax.persistence.EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value (ru.dz.train.test.ZeroIdTest$MyEntity:0) if Id=1 no exception code : import javax.persistence.*; public class ZeroIdTest { public | |
MapJoin.key() - JPA Method JPA Method in javax.persistence.criteria.MapJoin Path key () Create a path expression that corresponds to the map key . Return: path corresponding to map key Since: JPA 2.0 | |
CriteriaBuilder.keys(map) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression keys ( M map ) Create an expression that returns the keys of a map. Parameters: map - map Return: set expression Since: JPA 2.0 | |
javax.persistence.PrimaryKeyJoinColumn Specifies a primary key column that is used as a foreign key to join to another table. It is used ... to a primary table; and it may be used in a OneToOne mapping in which the primary key of the referencing ... to have the same names as the primary key columns of the primary table of the superclass. Example: Customer | |
javax.persistence.EntityManager to create and remove persistent entity instances, to find entities by their primary key ... ;Object primaryKey) Find by primary key . Search for an entity of the specified class and primary ... there. Parameters: entityClass - entity class primaryKey - primary key Return: the found entity instance or null | |
SSL Configuration), an RSA private key and its corresponding public key (the SSL protocol is based on the RSA ... signature. This file is generated from the Keystore file by omitting the private key (it still contains the general information and the public key ). You can generate these files using the JDK keytool | |
javax.persistence.SecondaryTable table. If no primary key join columns are specified, the join columns are assumed to reference the primary key columns of the primary table, and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single secondary table with a single primary key | |
javax.persistence.JoinColumn class; "_"; the name of the referenced primary key column. If there is no such referencing relationship ... of the referenced primary key column. Since: JPA 1.0 boolean nullable default true (Optional) Whether the foreign ... the primary key column of the referenced table. Since: JPA 1.0 String table default "" (Optional) The name | |
javax.persistence.MapKey key for associations of type java.util.Map when the map key is itself the primary key or a persistent ... other than the primary key is used as a map key then it is expected to have a uniqueness constraint ... is primary key public Map getEmployees() {... } ... } @Entity public class Employee { ... @Id Integer | |
javax.persistence.MapsId a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key , an attribute within an EmbeddedId primary key , or a simple primary key of the parent entity. The value ... corresponds. If the entity's primary key is of the same Java type as the primary key of the entity referenced | |
javax.persistence.TableGenerator Defines a primary key generator that may be referenced by name when a generator element is specified ... on the primary key field or property. The scope of the generator name is global to the persistence unit ... if table generation is in effect. Note that it is not necessary to specify an index for a primary key | |
javax.persistence.MapKeyJoinColumn.) The same name as the primary key column of the referenced table Since: JPA 2.0 String table ... is for a OneToMany entity relationship using a foreign key mapping strategy, the name of the primary table ... a mapping to an entity that is a map key . The map key join column is in the collection table, join | |
javax.persistence.GeneratedValue for the specification of generation strategies for the values of primary keys . The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in ... to be supported for simple primary keys . Use of the GeneratedValue annotation is not supported for derived | |
javax.persistence.Id.sql.Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column for the primary key of the entity is assumed to be the primary key of the primary table. If no Column annotation is specified, the primary key column name is assumed to be the name of the primary key property or field. Example | |
javax.persistence.MapKeyColumn entailed by primary key mapping and to constraints specified at the table level. Since: JPA 2.0 boolean ... the mapping for the key column of a map whose map key is a basic type. If the name element is not ... field or property; "_"; " KEY ". Example: @Entity public class Item { @Id int id; ... @ElementCollection | |
javax.persistence.JoinTable default {} (Optional) The foreign key columns of the join table which reference the primary table ... of the join table is assumed to be the table names of the associated primary tables concatenated ... or control the generation of a foreign key constraint for the columns corresponding | |
javax.persistence.PrimaryKeyJoinColumn.referencedColumnName default "" (Optional) The name of the primary key column of the table being joined to. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or | |
javax.persistence.PrimaryKeyJoinColumn.name "" (Optional) The name of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or the same name as the primary | |
javax.persistence.MapKey.name of the persistent field or property of the associated entity that is used as the map key . Default: If the name element is not specified, the primary key of the associated entity is used as the map key . If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary key class is used as the key . Since: JPA 1.0 | |
javax.persistence.EmbeddedId to a persistent field or property of an entity class or mapped superclass to denote a composite primary key ... a derived primary key . If the entity has a derived primary key , the AttributeOverride annotation ... { String name; EmployeeId empPK; // corresponds to primary key type of Employee } @Entity public | |
javax.jdo.annotations.Key.updateAction JDO Annotation Attribute in javax.jdo.annotations. Key ForeignKeyAction updateAction default ForeignKeyAction.UNSPECIFIED Update action to apply to the foreign key for the key . Since: JDO 2.1 | |
javax.jdo.annotations.Key.deleteAction JDO Annotation Attribute in javax.jdo.annotations. Key ForeignKeyAction deleteAction default ForeignKeyAction.UNSPECIFIED Delete action to apply to the foreign key for the key . Since: JDO 2.1 | |
PersistenceManager.newObjectIdInstance(pcClass,key) - JDO Method;pcClass, Object key ) This method returns an object id instance corresponding to the pcClass and key arguments. Parameters: pcClass - the Class of the persistence-capable instance key - for single-field identity, the parameter for the constructor; for non-single-field application | |
javax.jdo.annotations.Key.types JDO Annotation Attribute in javax.jdo.annotations. Key Class[] types default {} Types of the keys . This can be determined if using JDK1.5 generics but is required otherwise. Multiple types can be specified if the implementation supports multiple types. Since: JDO 2.1 | |
javax.jdo.annotations.Key.columns JDO Annotation Attribute in javax.jdo.annotations. Key Column [] columns default {} The column(s) for the key Since: JDO 2.1 | |
javax.jdo.annotations.Key.mappedBy JDO Annotation Attribute in javax.jdo.annotations. Key String mappedBy default "" Name of a member in the value class where this key is stored. Since: JDO 2.1 | |
javax.jdo.annotations.Key.foreignKey JDO Annotation Attribute in javax.jdo.annotations. Key String foreignKey default "" Name for a generated foreign key constraint. Since: JDO 2.1 | |
javax.jdo.annotations.Key.generateForeignKey JDO Annotation Attribute in javax.jdo.annotations. Key String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false". 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.Key.column JDO Annotation Attribute in javax.jdo.annotations. Key String column default "" Name of the column to store the key in. Since: JDO 2.1 | |
javax.jdo.annotations.Key.table JDO Annotation Attribute in javax.jdo.annotations. Key String table default "" Name of the table for the key . Since: JDO 2.1 | |
javax.jdo.annotations.Key.embedded JDO Annotation Attribute in javax.jdo.annotations. Key String embedded default "" Whether this key is embedded. Since: JDO 2.1 | |
javax.jdo.annotations.Key.serialized JDO Annotation Attribute in javax.jdo.annotations. Key String serialized default "" Whether the key is to be stored serialized (into a single column of a join table). Since: JDO 2.1 | |
javax.jdo.annotations.Key.dependent JDO Annotation Attribute in javax.jdo.annotations. Key String dependent default "" Whether the key is dependent on the owner (and will be deleted when the owner is deleted). Since: JDO 2.1 | |
javax.jdo.annotations.Key.embeddedMapping JDO Annotation Attribute in javax.jdo.annotations. Key Embedded [] embeddedMapping default {} The embedded mapping for the key . Since: JDO 2.1 | |
PersistenceManager.putUserObject(key,val) - JDO Method JDO Method in javax.jdo.PersistenceManager Object putUserObject ( Object key , Object val ) Put the specified key -value pair into the map of user objects. Since: JDO 2.0 | |
javax.jdo.annotations.Extension.key JDO Annotation Attribute in javax.jdo.annotations.Extension String key default null The key for the extension (required). Since: JDO 2.1 | |
javax.jdo.annotations.Key.extensions JDO Annotation Attribute in javax.jdo.annotations. Key Extension [] extensions default {} Vendor extensions. Since: JDO 2.1 | |
javax.jdo.annotations.Key.index JDO Annotation Attribute in javax.jdo.annotations. Key String index default "" The name of the index to generate. Since: JDO 2.1 | |
javax.jdo.annotations.Key.indexed JDO Annotation Attribute in javax.jdo.annotations. Key String indexed default "" Whether the value column(s) should be indexed. 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 | |
[ODB1] Chapter 8 - ObjectDB Server contains general details (such as a company name), an RSA private key and its corresponding public key ... , by omitting the private key (it still contains the general information and the public key | |
Which API should I use - JPA or JDO? the primary API, and if necessary, switch to JDO as a secondary API for special additional features | |
javax.jdo.PersistenceManager only for instances of persistence capable classes using application-managed ( primary key ) JDO identity ... JDO Interface PersistenceManager PersistenceManager is the primary interface for JDO-aware ... Since: JDO 1.0 T getObjectById (Class cls, Object key ) Looks up the instance | |
javax.jdo.spi.PersistenceCapable identity, this method must be called on an instance of a persistence-capable class with its primary key ... is initialized with the value(s) of the primary key field(s) of the instance on which the method is called ... with the values of the primary key fields of the persistence-capable instance on which the method | |
javax.jdo.annotations.PrimaryKey Implemented Interfaces: Annotation Annotation on a member to define it as a primary key member of a class or persistent interface using application identity. Also used to define the primary key columns of a secondary table. Corresponds to the xml element " primary - key ". Since: JDO 2.1 Public Annotation |