ObjectDB Database Search

1-5 of 5 results

jakarta.persistence.IdClass

Jakarta Persistence (JPA) Annotation Type jakarta.persistence. IdClass Implemented Interfaces: Annotation Target: Type Specifies a composite primary key type whose fields or properties map ... to be annotated. Example: @ IdClass (EmployeePK.class) @Entity public class Employee { @Id String empName; @Id

jakarta.persistence.EmbeddedId

of the entity may be annotated Id or EmbeddedId , and the entity class must not declare an IdClass ... ; } See Also: Embeddable MapsId IdClass Since: Jakarta Persistence (JPA) 1.0 The JPA Primary Key article explains

jakarta.persistence.MapKey

and is mapped as IdClass , an instance of the primary key class is used as the key. Default

jakarta.persistence.metamodel.IdentifiableType.hasSingleIdAttribute()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType boolean hasSingleIdAttribute() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass . Returns: boolean indicating whether the identifiable

Error opening database with ObjectDB Explorer when using composite key

@ IdClass (PersonId.class) public class Person { public enum Gender {FEMALE, MALE}; @Id private String id