ObjectDB Database Search

1-50 of 82 results

jakarta.persistence.GenerationType.IDENTITY

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0

Auto Generated Values

and are never recycled, as explained in the previous section . The IDENTITY strategy The IDENTITY strategy ... ( strategy = GenerationType . IDENTITY ) long id; : } The IDENTITY strategy also generates an automatic value for each new entity during the commit operation. The difference is that IDENTITY manages

JPA Components Annotations

class: Marks the class as an entity. Entities are persistent domain objects with a unique identity ... part of an owning entity and share its identity ; they have no persistent identity of their own. Marks

JPA Persistable Types

fields . In addition, only entity class instances preserve their identity and are stored ... and improve efficiency. However, embeddable classes do not have an identity (primary key

JPA Metamodel Types

with a persistent identity (primary key), serving as the superinterface of entities and mapped ... with attributes that lacks its own persistent identity and used for attributes. For a detailed

JPA Value Generation Annotations

generation: AUTO (default), IDENTITY , SEQUENCE , TABLE , or UUID . Generator definitions Define specific ... uniqueness. Use this generator when the underlying database doesn't support sequences or identity

Comparison in JPQL and Criteria API

rather than object identity . Data and Time values: Any comparison operator can be used ... rather than object identity . boolean and Boolean values: Can be compared using the equality operators

Database Management Settings

of the query result cache. Caching results is useful for recurring queries with identical arguments. As

SELECT clause (JPQL / Criteria API)

.capital.name) FROM Country AS c This query is identical to the previous one, except that the result

Database Replication and Clustering

both read and write operations. The other nodes in the cluster, known as slave nodes, manage identical

Detached JPA Entities

entity with the same identity (the same type and primary key). If a corresponding managed entity does

JPA Attributes Annotations

; Identity and versioning mapping Annotations used to define primary keys and concurrency control

Query Parameters in JPA

, named and ordinal parameters are identical . Named parameters can improve the clarity of the query

Deleting JPA Entities

this respect, orphanRemoval=true is identical to cascade=CascadeType.REMOVE . If you specify orphanRemoval

JPA Annotations

the internal state, identity , and associations of an entity using field-level annotations: Map individual

ORDER BY clause (JPQL / Criteria API)

results for which the preceding expressions produce identical values. The following query returns Country

JPA Primary Key

part of their containing entities and do not have a separate identity . Automatic primary key By default

jakarta.persistence.EntityManager

. A persistence context is a set of entity instances in which for any given persistent entity identity ... one of the following lifecycle states: A new entity has no persistent identity , and is not yet associated with any persistence context. A managed entity is an instance with a persistent identity

javax.jdo.JDONullIdentityException: The identity must not be null.

.removeChild(ContainerBase.java:1049) [...] Caused by: javax.jdo.JDONullIdentityException: The identity must not be null.         at javax.jdo. identity .SingleFieldIdentity ... . identity .ObjectIdentity. (ObjectIdentity.java:60)         at com

jakarta.persistence.GenerationType

, and IDENTITY . The AUTO generation strategy may expect a database resource to exist, or it may attempt ... Persistence (JPA) 1.0 IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long

jakarta.persistence.EntityManager.merge(T)

entity instance, but a distinct Java object identity . If the given entity is detached, the returned entity has the same persistent identity . This operation cascades to every entity related by

jakarta.persistence.MapsId

of the parent entity, since the identity of the dependent entity declaring the relationship

jakarta.persistence.Embeddable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embeddable Implemented Interfaces: Annotation Target: Type Declares a type whose instances are stored as an intrinsic part of an owning entity, sharing the identity of the entity. A single embeddable type may be used as the type

jakarta.persistence.PrePersist

SEQUENCE primary key generation. For IDENTITY primary key generation, the generated primary key

jakarta.persistence.GenerationType.AUTO

, GenerationType.SEQUENCE , and GenerationType. IDENTITY . The AUTO generation strategy may expect a database

Need help to make this test work and define proper annotations for entities Lists

,String ident ){                 ... ;             identifier = ident ;  

Multi selection and distinct in a criteria query

? Results with identical 2nd element will not be filtered anyway if the first element is different. Only results in which all the elements are identical are filtered.   support Support aaahh.. okay

Memory Leak in EntityManagerFactory ?

and removed from memory (checked in the Profiler) 4. nevertheless there are lots of identical Copies ... check it tomorow). Arne Arne Stocker create_cound and close_count are identical . I made create_count

Change Sequcene Id

("MyEntity$ identity "); long currentValue = seq.currentValue(); // I would like to change currentValue ... ; @GeneratedValue(strategy=GenerationType. IDENTITY )     private Long id; }   Tsu

failure to enforce NOT NULL for java.lang.String

. IDENTITY ) private Long id; @Unique @Persistent(nullValue=NullValue.EXCEPTION) private String username ... @GeneratedValue(strategy=GenerationType. IDENTITY )         private

Attempt to execute a query using a closed EntityManager

(strategy = GenerationType. IDENTITY ). 5. Any ideas why this would happen? @Stateless ClientC ... () should just return the "long" field which is @Id @GeneratedValue(strategy = GenerationType. IDENTITY

On ensuring ID available after persist

://www.objectdb.com/java/jpa/entity/generated :     Unlike AUTO and IDENTITY ... implementation uses its own default strategy. IDENTITY - implementation depends on the database

Replication error on slave restart

both master and slave (directly through /$replication path on slave) [ IDENTICAL ] 6) restart ODB server ... Failed to synchronize] 8) repeated N5. [NOT IDENTICAL ] 9) Stoped slave ODB server

A bidirectional OneToOne association with a shared primary key

annotations. You can have a bidirectional one to one association, but it cannot be based on identical primary ... , even if it is identical to the primary key (causing duplication). Accordingly, you must set the reference

mappedBy problem

. IDENTITY ) public Long id; public String name; @OneToMany(targetEntity=Address.class,mappedBy="employee ... . IDENTITY ) public Long id; public String line; @ManyToOne public Employee employee; } The address

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections for identical members. Something like: SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER ... collections by identical hash code. Candidate collections should then be further filtered by checking

Is there a function of "drop table" or "delete from table"?

global sequence . The name of an identity sequence (specific per entity class) is entityName + "$ identity " . User defined generators ( sequence and table ) have explicit names. support Support I

Failed to generate dynamic type objectdb.java.util.ArrayList

a standalone environment. I get two stack traces (one for each class) that are identical ... - the stack traces might be similar but not identical and that additional info could help. support Support

Find the error...JPA ENTITY HIBERNATE

") @GeneratedValue(strategy = GenerationType. IDENTITY ) private int id; @Column(name = "username") private ... { @Id @GeneratedValue(strategy = GenerationType. IDENTITY ) @Column(name = "id") private int id; @Column

Jboss 6 persistence.xml startup error

.jar ) was added to ObjectDB distribution in the new build. It is identical to objectdb.jar

Duplicate Entity class names causes Exception in Query

" but OjectDb does not. Any suggestions? At the momment I am working on generating 2 jars with identical

Bug: ClassCastException by retrieval

class Node { @Id     @GeneratedValue(strategy=GenerationType. IDENTITY ) int id

Multi threading on DMOs by lazy loading

of type EntityZ from database. Several threads use the identical instance of EntityZ. Thread1 access

Does ObjectDB support @Parent for @Embeddable reference to parent?

. IDENTITY ) private Integer id; @Access(AccessType.PROPERTY) @Embedded private Profile profile; public

find() cost unreasonable time!

="0") public class Nodes { @Id     @GeneratedValue(strategy=GenerationType. IDENTITY

General Performance Issues Illustrated with a Specific Method

final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType. IDENTITY ) private Long

Inverse OneToMany Mapping and EmbeddedId

static javax.persistence . GenerationType . IDENTITY ; import static javax.persistence . Persistence ... ( strategy = IDENTITY )          public int id ;       ... ;   @Id          @GeneratedValue ( strategy = IDENTITY )  

NullpointerException at a normal select

;   logger.debug(" Ident : "+ ident );     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident ).getSingleResult ... at the top): 09:08:49.496 [http-bio-0.0.0.0-8080-exec-9] DEBUG s.t.c.o.OrganizationService - Ident : default

InternalException

pdnsrtlonmo42-WSAgent-1-Existing/0 ERROR WorkflowRunner - The identity must not be null. javax.jdo.JDONullIdentityException: The identity must not be null. at javax.jdo. identity .SingleFieldIdentity.assertKeyNotNull(SingleFieldIdentity.java:92) at javax.jdo. identity .ObjectIdentity. (ObjectIdentity.java:60

Can not have unique index on Byte Array

more that once even if there are no 2 arrays or collections that are identical . For example if obj1 has [0