About Id

101-110 of 200Refresh
JPA Doc
4

getDeclaredId(type)

> type ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Returns: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type is not declared in
JPA Doc
4

getId(type)

) Return the attribute that corresponds to the id attribute of the entity or mapped superclass. Parameters: type - the type of the represented id attribute Returns: id attribute Throws: IllegalArgumentException - if id attribute of the given type is not present in the identifiable type or if the identifiable type has an id class Since: JPA 2.0
JPA Doc
4

isId()

Method javax.persistence.metamodel.SingularAttribute boolean isId() Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class. Returns: boolean indicating whether the attribute is an id Since: JPA 2.0
JDO Doc
4

javax.jdo.PersistenceManager

: oid - The object id of the object to load Returns: the corresponding persistent instance Since: JDO ... of object to load key - either the string representation of the object id, or an object representation ... newObjectIdInstance(Class pcClass, Object key) This method returns an object id instance corresponding
JPA Doc
4

javax.persistence.AssociationOverride

=@JoinColumn(name="ADDR_ID")) // address field mapping overridden to ADDR_ID foreign key ... { @Id int id; @AssociationOverride( name="phoneNumbers", joinTable ... ; } @Entity public class PhoneNumber { @Id int number; @ManyToMany
JPA Doc
4

javax.persistence.AssociationOverrides

: @MappedSuperclass public class Employee { @Id protected Integer id; @Version ... protected Locker locker; public Integer getId() { ... } public void setId(Integer id ... ( name="address", joinColumns=@JoinColumn("ADDR_ID
JPA Doc
4

javax.persistence.ColumnResult

( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o ... " + "WHERE (order_quantity > 25) AND (order_item = i.id)", "OrderResults ... .class, fields={ @FieldResult(name="id", column="order_id"), @FieldResult
JPA Doc
4

javax.persistence.EmbeddedId

. There must be only one EmbeddedId annotation and no Id annotation when the EmbeddedId annotation is used ... may only be used to override those attributes of the embedded id that do not correspond to the relationship to the parent entity. Relationship mappings defined within an embedded id class are not
JPA Doc
4

javax.persistence.FieldResult

.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity ... > 25) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping(name="OrderResults ... ={ @FieldResult(name="id", column="order_id"), @FieldResult(name="quantity", column
JPA Doc
4

javax.persistence.ManyToOne

: @ManyToOne(optional=false) @JoinColumn(name="CUST_ID", nullable=false, updatable=false ... Employee { @Id int id; @Embedded JobInfo jobInfo; ... } @Embeddable ... ; // Bidirectional } @Entity public class ProgramManager { @Id int id