Internal Website Search

1-19 of 19 results

JPA Primary Key

Project { @ EmbeddedId ProjectId id; : } @Embeddable Class ProjectId { int departmentId; long ... primary key field that is annotated with @ EmbeddedId and contains an instance of that embeddable class ... primary key can significantly improve query run performance: @Entity public class Event { @ EmbeddedId

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

javax.persistence.EmbeddedId

JPA Annotation EmbeddedId Target: METHOD, FIELD Implemented Interfaces: Annotation Applied ... . There must be only one EmbeddedId annotation and no Id annotation when the EmbeddedId annotation is used ... class. The MapsId annotation may be used in conjunction with the EmbeddedId annotation to specify

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

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 ... EmbeddedId for composite key @Embeddable public class DependentId { String name; long empid

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

javax.persistence.AttributeOverride

: @Entity public class PropertyRecord { @ EmbeddedId PropertyOwner owner; @AttributeOverrides

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