Home » Search

About Id

101-110 of 200Refresh
JPA Doc
5

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
5

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
5

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
5

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
5

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
5

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
5

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
5

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
JPA Doc
5

javax.persistence.PersistenceUnitUtil

 entity) Return the id of the entity. Return the id of the entity. A generated id is not guaranteed ... yet have an id. Parameters: entity - entity instance Returns: id of the entity Throws
JPA Doc
5

javax.persistence.SqlResultSetMapping

of the result of a native SQL query. Example: Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item ... > 25) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping(name="OrderResults