ObjectDB Database Search

1-6 of 6 results

jakarta.persistence.EmbeddedId

Jakarta Persistence (JPA) Annotation Type jakarta.persistence. EmbeddedId Implemented Interfaces ... . If a field or property of an entity class is annotated EmbeddedId , then no other field or property of the entity may be annotated Id or EmbeddedId , and the entity class must not declare an IdClass

jakarta.persistence.MapsId

the mapping for an EmbeddedId primary key, an attribute within an EmbeddedId primary key, or ... { @Id long empId; String name; ... } And then the dependent entity uses EmbeddedId to declare ... to primary key type of Employee } @Entity public class Dependent { @ EmbeddedId DependentId id

jakarta.persistence.Embeddable

annotated Id or EmbeddedId . Fields or properties of an embeddable class are persistent by default ... ; } See Also: Embedded EmbeddedId Since: Jakarta Persistence (JPA) 1.0 The JPA Persistable Types article explains

jakarta.persistence.Id

() { return id; } See Also: Column GeneratedValue EmbeddedId PersistenceUnitUtil.getIdentifier(Object

jakarta.persistence.IdClass

) {} See Also: EmbeddedId Since: Jakarta Persistence (JPA) 1.0 Annotation Elements Class value The primary key class

jakarta.persistence.Entity

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