ObjectDB Database Search

1-22 of 22 results

JPA Primary Key

class Project { @ EmbeddedId ProjectId id; : } @Embeddable public class ProjectId { int departmentId ... a single primary key field that is annotated with @ EmbeddedId and contains an instance ... { @ EmbeddedId EventId id; : } @Embeddable public class EventId { int sensorId; Date time

Should derived fields of an EmbeddedId be manually maintained by app code?

@ EmbeddedId , am I responsible for maintaining the derived fields of the @ EmbeddedId ? I could not find ... "ECompoundKeyMapSubItem", identified by their keys. The embeddedId for the item class, ECompoundKeyMapItemId ... ("cont") annotation. Likewise the ECompoundKeyMapSubItem class has a PK which is an embeddedId

AnnotationRef jakarta.persistence.EmbeddedId

JPA Annotation EmbeddedId Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies ... EmbeddedId , then no other field or property of the entity may be annotated Id or EmbeddedId ... within the embeddable class. The MapsId annotation may be used in conjunction with the EmbeddedId

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

.persistence.Embeddable; import javax.persistence.Embedded; import javax.persistence. EmbeddedId ; import ... ;@ EmbeddedId         private AId id;         

Efficient query on EmbeddedId

Hi! I have an entity class with an @ EmbeddedId (field1 int and field2 int). Based on the manual, I understand that making a query just on entity.id.field1 is efficient. Of course, making a query containing the whole EmbeddedId is the ideal case, and I use it, but I need more use cases. My question

Can't modify @EmbeddedId in ObjectDB Explorer

Hi! There is entity Journal with @ EmbeddedId JournalId. Id's content can't be seen/modified from ObjectDB Explorer from its class. Ok, I get this. It's an @ EmbeddedId , so it should depend only on its parent. Problem: id's content can't be modified through its parent neither. Scenario: open db in

EmbeddedId with Generated field value

********* @Entity public class A { @ EmbeddedId private CompositePK pk; } @Embeddable public class CompositePK

ObjectDB Object Database Features

- a single @Id field. Composite primary key - multiple @Id fields or a @ EmbeddedId field

Inverse OneToMany Mapping and EmbeddedId

.persistence . Embeddable ; import javax.persistence . EmbeddedId ; import javax.persistence . Entity ... = "id.ab") into @ EmbeddedId fails!  *   *         question ... ; a part of EmbeddedId ?  */ public class OdbInverseEmbIdMapping {      public static void

AnnotationRef jakarta.persistence.MapsId

JPA Annotation MapsId Target: METHOD, FIELD Implemented Interfaces: Annotation Designates 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

AnnotationRef jakarta.persistence.Embeddable

. However, an embeddable class may not have a field or property annotated Id or EmbeddedId . Fields or properties ... . Example 1: {@snippet : See Also: Embedded EmbeddedId Since: JPA 1.0 The JPA Persistable Types

Query on Embedded Primary Key?

; import java.util.List; import javax.persistence.Embeddable; import javax.persistence. EmbeddedId ... {     @ EmbeddedId private Primkey2 primkey;     private Primkey2 primkeycopy

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

javax.persistence. EmbeddedId ; import javax.persistence.Entity; import javax.persistence ... _LIMIT = 1000000; @Entity public static class X { @ EmbeddedId public XId id; public X() { } public X

AnnotationRef jakarta.persistence.IdClass

.class) @Entity public class Employee { See Also: EmbeddedId Since: JPA 1.0 Public Annotation

AnnotationRef jakarta.persistence.Id

property or field. Example: {@snippet : See Also: Column GeneratedValue EmbeddedId PersistenceUnitUtil

AnnotationRef jakarta.persistence.Entity

must have at least one field or property annotated Id or EmbeddedId holding the primary key of the entity. An entity class

TemporalType injection with Calendar using JPA

ArrayList (); }   @ EmbeddedId public TimePeriod getId() { return id; }   public void setId

New to Product & Having An Issue

; this.employees = employees; } @ EmbeddedId public DomainId getDomainId() { return domainId; } public void

Suggestion for improving the examples

, JPL named queries and  how EmbeddedId   classes are meant to be used in named queries

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Book { @ EmbeddedId BookId id; } @Embeddable Class BookId { Integer bookIdCountry; ECountry country ... ; @ EmbeddedId public MyEntityId id;     }         

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

; } @ EmbeddedId public TimePeriod getId() { return id; } public void setId(TimePeriod id) { this.id = id

ObjectDB 2.0.0

in preserving order of @ EmbeddedId fields. Fixed a NullPointerException during cache cleanup. Fixed