ObjectDB Database Search

1-50 of 76 results

Auto Generated Values

, as explained in the previous section . The Identity Strategy The IDENTITY strategy is very similar ... = GenerationType . IDENTITY ) long id; : } The IDENTITY strategy also generates an automatic value during commit for every new entity object. The difference is that a separate identity generator is managed

EnumConstRef jakarta.persistence.GenerationType.IDENTITY

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: JPA 1.0

JPA Persistable Types

. In addition, only instances of entity classes preserve identity and are stored ... , however, do not have an identity (primary key) of their own which leads to some limitations (e.g

Comparison in JPQL and Criteria API

, comparing the content rather than the identity . Date values can be compared by using any comparison operator ... , comparing the content rather than the identity . Values of the boolean and Boolean types can be compared by

Database Management Settings

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

SELECT clause (JPQL / Criteria API)

) FROM Country AS c This query is identical to the previous query above except that now the result

Database Replication and Clustering

/ Write operations. The other (slave) nodes in the cluster manage identical copies of the same database

Detached Entity Objects

with the same identity (i.e. same type and primary key). If the EntityManager does not manage such an entity

Query Parameters in JPA

the different notation, named parameters and ordinal parameters are identical . Named parameters can provide

Deleting JPA Entity Objects

this regard, orphanRemoval=true and cascade=CascadeType.REMOVE are identical , and if orphanRemoval

JPA Primary Key

and do not have their own separate identity . Automatic Primary Key By default, the primary key

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

InterfaceRef jakarta.persistence.EntityManager

given persistent entity identity (defined by an entity type and primary key) there is at most one entity ... has no persistent identity , and is not yet associated with any persistence context. A managed entity is an instance with a persistent identity that is currently associated with a persistence context. A detached

EnumRef jakarta.persistence.GenerationType

, and IDENTITY . The AUTO generation strategy may expect a database resource to exist, or it may attempt ... 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

EntityManager.merge(entity) - JPA Method

, 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 an association marked cascade

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

AnnotationRef jakarta.persistence.Embeddable

JPA Annotation Embeddable Target: TYPE Implemented Interfaces: Annotation 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 of multiple persistent fields or properties

AnnotationRef jakarta.persistence.PrePersist

when this callback occurs only for UUID , TABLE , or SEQUENCE primary key generation. For IDENTITY

EnumConstRef jakarta.persistence.GenerationType.AUTO

int , the provider selects between TABLE , SEQUENCE , and IDENTITY . The AUTO generation strategy

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

ObjectDB within a resource adapter module and Java EE Connector Architecture

are also identical (shared) if defined in the persistence.xml in the CoreEJB module. If SpecWeb1

Database size is much larger than expected (x2)

objects have identity and support multiple references without duplication. All the other types

Future JDO versions?

management of identity ) are built-in to JDO.  We have recently migrated projects for JPA

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:

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

Use temporary files to enable very large transactions

because the size of the arrays is identical to the cache page configuration. We use the ObjectDB as

probable error in text of manual about embeddable classes

. Embeddable classes, however, do not have an identity (primary key) of their own which leads to some

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

which hold much memory, if we execute several transactions on the identical entity manager