ObjectDB Database Search
51-100 of 200 resultsjakarta.persistence.NamedEntityGraph Interfaces: Annotation Target: Type Defines a named entity graph . This annotation must be applied ... . A reference to a named entity graph may be obtained by calling EntityManager.getEntityGraph ... name (Optional) The name used to identify the entity graph in calls to EntityManager.getEntityGraph | |
jakarta.persistence.JoinTable is missing, the default values of the annotation elements apply. The name of the join table is assumed to be the table names of the associated primary tables concatenated together (owning side first) using an underscore. Example: @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn( name = "CUST_ID | |
jakarta.persistence.ConstructorResult is retrieved for the constructed object. Example: Query q = em.createNativeQuery( "SELECT c.id, c. name ... " + "WHERE o.cid = c.id " + "GROUP BY c.id, c. name ", "CustomerDetailsResult"); @SqlResultSetMapping( name ... , columns = { @ColumnResult( name = "id"), @ColumnResult( name = " name "), @ColumnResult( name | |
jakarta.persistence.MapKey public class Employee { ... @Id Integer getEmpId() { ... } @ManyToOne @JoinColumn( name = "dept_id ... { ... @OneToMany(mappedBy = "department") @MapKey( name = " name ") public Map getEmployees() {... } ... } @Entity public class Employee { @Id public Integer getEmpId() { ... } ... @ManyToOne @JoinColumn( name | |
jakarta.persistence.NamedAttributeNode (Required) The name of the attribute that must be included in the graph. Since: Jakarta Persistence (JPA ... of this element is the name of the subgraph as specified by the name element of the corresponding ... this name . Default: "" Since: Jakarta Persistence (JPA) 1.0 String keySubgraph (Optional | |
jakarta.persistence.Convert of each identifier used with the dot notation is the name of the respective embedded field or property ... element must be specified, and "key." or "value." (respectively) must be used to prefix the name ... @ElementCollection // applies to each element in the collection @Convert(converter = NameConverter.class) List names | |
jakarta.persistence.EmbeddedId empName, Date birthDay) {} Example 2: @Embeddable public class DependentId { String name ; EmployeeId ... column name for " name " attribute is overridden @AttributeOverride( name = " name ", column = @Column( name = "dep_ name ")) @EmbeddedId DependentId id; ... @MapsId("empPK") @ManyToOne Employee emp | |
jakarta.persistence.FieldResult"); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme.Order.class, fields = { @FieldResult( name = "id", column = "order_id"), @FieldResult( name = "quantity", column = "order_quantity"), @FieldResult( name = "item", column = "order_item | |
jakarta.persistence.GeneratedValue") @Column( name = "CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy = TABLE, generator = "CUST_GEN") @Column( name = "CUST_ID") Long id; See Also: GenerationType Id ... ) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator | |
jakarta.persistence.ManyToMany notation is the name of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany @JoinTable( name = "CUST_PHONES") public Set getPhones() { return phones; } // In ... : @ManyToMany @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn( name = "CUST_ID | |
jakarta.persistence.MappedSuperclass protected Integer empId; @Version protected Integer version; @ManyToOne @JoinColumn( name = "ADDR ... ) { ... } } @Entity @Table( name = "PT_EMP") @AssociationOverride( name = "address", joinColumns = @JoinColumn( name ... to PT_EMP.ADDR_ID fk @Column( name = "WAGE") protected Float hourlyWage; public PartTimeEmployee | |
jakarta.persistence.Entity . Annotation Elements String name (Optional) The entity name . Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved | |
jakarta.persistence.DiscriminatorColumn, the name of the discriminator column defaults to "DTYPE" and the discriminator type to DiscriminatorType.STRING . Example: @Entity @Table( name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn( name = "DISC", discriminatorType = STRING, length = 20) public class Customer | |
jakarta.persistence.Index ::= column_ name [ASC | DESC] If neither ASC nor DESC is not specified, ASC , that is, ascending order ... name (Optional) The name of the index. Defaults to a provider-generated name . Default | |
jakarta.persistence.DiscriminatorValue is STRING , the discriminator value default is the entity name . The inheritance strategy ... , should be specified for each concrete entity class in the hierarchy. Example: @Entity @Table( name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn( name = "DISC", discriminatorType | |
jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String) getSingularAttribute ( String name ) Return the single-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: single-valued attribute with the given name . Throws: IllegalArgumentException | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String) getDeclaredSingularAttribute ( String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared single-valued attribute of the given name . Throws | |
jakarta.persistence.metamodel.ManagedType.getCollection(String) getCollection ( String name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: CollectionAttribute of the given name . Throws: IllegalArgumentException - if attribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String) getDeclaredCollection ( String name ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared CollectionAttribute of the given name . Throws | |
jakarta.persistence.metamodel.ManagedType.getAttribute(String) getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: attribute with given name . Throws: IllegalArgumentException - if attribute of the given name is not present in the managed type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.metamodel.ManagedType.getDeclaredAttribute(String) getDeclaredAttribute ( String name ) Return the attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: attribute with given name . Throws: IllegalArgumentException - if attribute of the given name is not | |
jakarta.persistence.metamodel.ManagedType.getMap(String) ( String name ) Return the Map-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: MapAttribute of the given name . Throws: IllegalArgumentException - if attribute of the given name is not present | |
jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String) getDeclaredMap ( String name ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared MapAttribute of the given name . Throws: IllegalArgumentException - if attribute | |
jakarta.persistence.metamodel.ManagedType.getSet(String) ( String name ) Return the Set-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: SetAttribute of the given name . Throws: IllegalArgumentException - if attribute of the given name is not present | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSet(String) getDeclaredSet ( String name ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared SetAttribute of the given name . Throws: IllegalArgumentException - if attribute | |
jakarta.persistence.metamodel.ManagedType.getList(String) getList ( String name ) Return the List-valued attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: ListAttribute of the given name . Throws: IllegalArgumentException - if attribute of the given name is not | |
jakarta.persistence.metamodel.ManagedType.getDeclaredList(String) getDeclaredList ( String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: declared ListAttribute of the given name . Throws: IllegalArgumentException - if attribute | |
jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String,Class) getSingularAttribute ( String name , Class type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name - the name of the represented attribute type - the type of the represented attribute Returns: single | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String,Class) getDeclaredSingularAttribute ( String name , Class type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. Parameters: name - the name of the represented attribute type - the type of the represented | |
jakarta.persistence.metamodel.ManagedType.getList(String,Class) getList ( String name , Class elementType ) Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element type of the represented attribute | |
jakarta.persistence.metamodel.ManagedType.getDeclaredList(String,Class) getDeclaredList ( String name , Class elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element type | |
jakarta.persistence.metamodel.ManagedType.getMap(String,Class,Class) ( String name , Class keyType , Class valueType ) Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type | |
jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String,Class,Class) getDeclaredMap ( String name , Class keyType , Class valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name of the represented attribute keyType | |
jakarta.persistence.metamodel.ManagedType.getCollection(String,Class) getCollection ( String name , Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element type | |
jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String,Class) getDeclaredCollection ( String name , Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element | |
jakarta.persistence.metamodel.ManagedType.getSet(String,Class) ( String name , Class elementType ) Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element type of the represented attribute Returns | |
jakarta.persistence.metamodel.ManagedType.getDeclaredSet(String,Class) getDeclaredSet ( String name , Class elementType ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType - the element type of the represented | |
jakarta.persistence.ForeignKey AssociationOverride Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String name (Optional) The name of the foreign key constraint. Defaults to a provider-generated name . Default | |
jakarta.persistence.JoinColumns specify both name and referencedColumnName . Example: @ManyToOne @JoinColumns({ @JoinColumn( name = "ADDR_ID", referencedColumnName = "ID"), @JoinColumn( name = "ADDR_ZIP", referencedColumnName = "ZIP | |
jakarta.persistence.MapsId { @Id long empId; String name ; ... } And then the dependent entity uses EmbeddedId to declare its composite primary key: @Embeddable public class DependentId { String name ; long empid; // corresponds ... value (Optional) The name of the attribute within the composite key to which the relationship | |
jakarta.persistence.EntityResult. Example: Query q = em.createNativeQuery( "SELECT o.id, o.quantity, o.item, " + "i.id, i. name , i ... "); @SqlResultSetMapping( name = "OrderItemResults", entities = { @EntityResult(entityClass = com ... Specifies the column name (or alias) of the column in the SELECT list that is used to determine the type | |
jakarta.persistence.TypedQuery.setParameter(String,Object); String name , Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or | |
jakarta.persistence.TypedQuery.setParameter(String,Calendar,TemporalType); String name , Calendar value , TemporalType temporalType ) Bind an instance of Calendar to a named parameter. Parameters: name - parameter name temporalType ... - if the parameter name does not correspond to a parameter of the query or if the value argument | |
jakarta.persistence.TypedQuery.setParameter(String,Date,TemporalType); String name , Date value , TemporalType temporalType ) Bind an instance of Date to a named parameter. Parameters: name - parameter name temporalType - temporal type ... - if the parameter name does not correspond to a parameter of the query or if the value argument | |
jakarta.persistence.StoredProcedureQuery.setParameter(String,Object) setParameter ( String name , Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter | |
jakarta.persistence.StoredProcedureQuery.setParameter(String,Calendar,TemporalType) setParameter ( String name , Calendar value , TemporalType temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name temporalType - temporal type value - parameter value Returns: the same query instance | |
jakarta.persistence.StoredProcedureQuery.setParameter(String,Date,TemporalType) setParameter ( String name , Date value , TemporalType temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name ... : IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or | |
jakarta.persistence.PersistenceUnitUtil. Overrides PersistenceUtil.isLoaded Parameters: attributeName - name of attribute whose load state ... : attributeName - the name of the attribute to be loaded entity - entity instance Throws | |
jakarta.persistence.Id annotation is specified, the primary key column name is assumed to be the name of the primary key property | |
jakarta.persistence.IdClass properties with matching names and types. The mapping of fields or properties of the entity to fields or ... , which must declare fields or properties with names and types that match the Id fields and properties |