Internal Website Search

101-150 of 200 results

javax.persistence.MapKeyJoinColumn.name

) The name of the foreign key column for the map key. The table in which it is found depends upon the context. If the join is for a map key for an element collection, the foreign key column is in the collection table for the map value. If the join is for a map key for a ManyToMany entity relationship

javax.persistence.MapKeyColumn.table

) The name of the table that contains the column. Defaults: If the map key is for an element collection, the name of the collection table for the map value. If the map key is for a OneToMany or ManyToMany entity relationship using a join table, the name of the join table for the map . If the map key

AttributeNode.getKeySubgraphs() - JPA Method

JPA Method in javax.persistence.AttributeNode Map getKeySubgraphs () Return the Map of subgraphs associated with this attribute node's map key. Return: Map of subgraphs associated with this attribute node's map key or empty Map if none have been defined Since: JPA 2.1

javax.persistence.metamodel.MapAttribute

JPA Interface MapAttribute Type Parameters: - The type the represented Map belongs to - The type of the key of the represented Map - The type of the value of the represented Map Super Interfaces ... .util. Map -valued attributes. Since: JPA 2.0 Public Methods Class getKeyJavaType () Return the Java

javax.persistence.JoinColumn.table

mapping using a foreign key mapping strategy, the name of the table of the source entity or embeddable. If the join is for a unidirectional OneToMany mapping using a foreign key mapping strategy, the name of the table of the target entity. If the join is for a ManyToMany mapping or for a OneToOne or

javax.persistence.metamodel.EntityType

that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type ... attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented ... to the id attribute of the entity or mapped superclass. Parameters: type - the type of the represented id

javax.persistence.JoinColumn.name

is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign key column ... mapping using a foreign key mapping strategy, the foreign key is in the table of the target entity. If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne/OneToMany mapping

javax.persistence.MapKeyEnumerated

the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated annotation can be applied to an element collection or relationship of type java.util. Map , in conjunction ... getProjects() {...} @OneToMany @MapKeyEnumerated(STRING) public Map getEmployees

javax.persistence.OneToMany

that is the owner of the relationship. When the collection is a java.util. Map , the cascade element and the orphanRemoval element apply to the map value. Example 1: One-to-Many association using generics // In ... using a foreign key mapping // In Customer class: @OneToMany(orphanRemoval=true) @JoinColumn(name

javax.persistence.SqlResultSetMapping

the mapping of the result of a native SQL query or stored procedure. Example: Query q = em ... the result set mapping to constructors. Since: JPA 2.1 ColumnResult [] columns default {} Specifies the result set mapping to scalar values. Since: JPA 1.0 EntityResult [] entities default {} Specifies

javax.persistence.MapKeyTemporal

This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar . It may only be specified for map keys of these types. The MapKeyTemporal annotation can be applied to an element collection or relationship of type java.util. Map in conjunction with the ElementCollection

javax.persistence.AssociationOverride.joinColumns

default {} The join column(s) being mapped to the persistent attribute(s). The joinColumns elements must be specified if a foreign key mapping is used in the overriding of the mapping of the relationship. The joinColumns element must not be specified if a join table is used in the overriding of the mapping of the relationship. Since: JPA 1.0

javax.persistence.JoinTable

the mapping of associations. It is applied to the owning side of an association. A join table is typically used in the mapping of many-to-many and unidirectional one-to-many associations. It may also be used to map bidirectional many-to-one/one-to-many associations, unidirectional many

AttributeNode.getSubgraphs() - JPA Method

JPA Method in javax.persistence.AttributeNode Map getSubgraphs () Return the Map of subgraphs associated with this attribute node. Return: Map of subgraphs associated with this attribute node or empty Map if none have been defined Since: JPA 2.1

javax.persistence.Subgraph

addKeySubgraph ( Attribute  attribute) Add a node to the graph that corresponds to a map key ... ( Attribute  attribute, Class  type) Add a node to the graph that corresponds to a map key ... to a map key that is a managed type. This allows for construction of multi-node entity graphs

javax.persistence.TemporalType

.TemporalType Type used to indicate a specific mapping of java.util.Date or java.util.Calendar . Since: JPA 1.0 The JPA Persistable Types article explains how to use TemporalType . Enum Constants DATE Map as java.sql.Date Since: JPA 1.0 TIME Map as java.sql.Time Since: JPA 1.0 TIMESTAMP Map as java.sql

javax.persistence.Persistence

createEntityManagerFactory (String persistenceUnitName,  Map  properties) Create and return ... generateSchema (String persistenceUnitName,  Map   map ) Create database schemas and/or tables ... : persistenceUnitName - the name of the persistence unit map - properties for schema generation

javax.persistence.criteria.Path

Expression get ( MapAttribute   map ) Create a path corresponding to the referenced map -valued attribute. Parameters: map - map -valued attribute Return: expression corresponding to the referenced

javax.persistence.MapKeyJoinColumns

composite map keys that reference entities. The MapKeyJoinColumns annotation groups ... will apply. Since: JPA 2.1 MapKeyJoinColumn [] value default null (Required) The map key join columns that are used to map to the entity that is the map key. Since: JPA 2.0

javax.persistence.EntityGraph

addKeySubgraph ( Attribute  attribute) Add a node to the graph that corresponds to a map key ... , Class  type) Add a node to the graph that corresponds to a map key that is a managed type ... ;attributeName) Add a node to the graph that corresponds to a map key that is a managed type. This allows

javax.persistence.EntityResult

with the SqlResultSetMapping annotation to map the SELECT clause of a SQL query to an entity result. If this annotation is used, the SQL statement should select all of the columns that are mapped to the entity ... . Since: JPA 1.0 FieldResult [] fields default {} Maps the columns specified in the SELECT list

javax.persistence.AssociationOverride.joinTable

@JoinTable The join table that maps the relationship. The joinTable element must be specified if a join table is used in the overriding of the mapping of the relationship. The joinTable element must not be specified if a foreign key mapping is used in the overriding of the relationship. Since: JPA 2.0

javax.persistence.MapKey.name

of the persistent field or property of the associated entity that is used as the map key. Default: If the name element is not specified, the primary key of the associated entity is used as the map key. If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary key class is used as the key. Since: JPA 1.0

javax.persistence.PrimaryKeyJoinColumn.referencedColumnName

to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping ); or the same name as the primary key column for the table for the referencing entity ( OneToOne mapping ). Since: JPA 1.0

javax.persistence.ColumnResult

with the SqlResultSetMapping annotation or ConstructorResult annotation to map a column of the SELECT list of a SQL ... (Optional) The Java type to which the column type is to be mapped . If the type element is not specified, the default JDBC type mapping for the column will be used. Since: JPA 2.1

javax.persistence.AttributeOverride.column

JPA Annotation Attribute in javax.persistence.AttributeOverride Column column default null (Required) The column that is being mapped to the persistent attribute. The mapping type will remain the same as is defined in the embeddable class or mapped superclass. Since: JPA 1.0

EntityManager.getProperties() - JPA Method

JPA Method in javax.persistence.EntityManager Map getProperties () Get the properties and hints and associated values that are in effect for the entity manager. Changing the contents of the map does not change the configuration in effect. Return: map of properties and hints in effect for entity manager Since: JPA 2.0

javax.persistence.JoinColumn.referencedColumnName

relationship mappings other than the cases described here, the referenced column is in the table of the target entity. When used with a unidirectional OneToMany foreign key mapping , the referenced column ... join definition. When used in a CollectionTable mapping , the referenced column is in the table

javax.persistence.MapsId

a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key ... id; ... @MapsId("empid") // maps the empid attribute of embedded id @ManyToOne Employee emp ... within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity's primary key. Since: JPA 2.0

EntityManager.createStoredProcedureQuery(procedureName,resultSetMappings) - JPA Method

of the result set mappings to be used in mapping result sets returned by the stored procedure ... or result set mapping of the given name does not exist (or the query execution will fail) Since: JPA 1.0

javax.persistence.MapKeyJoinColumns.value

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumns MapKeyJoinColumn [] value default null (Required) The map key join columns that are used to map to the entity that is the map key. Since: JPA 2.0

javax.persistence.EmbeddedId

to a persistent field or property of an entity class or mapped superclass to denote a composite primary key ... . The AttributeOverride annotation may be used to override the column mappings declared within the embeddable ... to the relationship to the parent entity. Relationship mappings defined within an embedded id class are not supported

javax.persistence.PrimaryKeyJoinColumn.name

key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping ); or the same name as the primary key column for the table for the referencing entity ( OneToOne mapping ). Since: JPA 1.0

javax.persistence.metamodel.PluralAttribute$CollectionType

JPA Enum CollectionType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.metamodel.PluralAttribute $CollectionType Since: JPA 2.0 Enum Constants COLLECTION Collection-valued attribute Since: JPA 2.0 LIST List-valued attribute Since: JPA 2.0 MAP Map -valued attribute Since: JPA 2.0

javax.persistence.ManyToMany

is a java.util. Map , the cascade element applies to the map value. Defaults to no operations

javax.persistence.AssociationOverrides

JPA Annotation AssociationOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple relationship properties or fields. Example: @MappedSuperclass ... AssociationOverride [] value default null (Required) The association override mappings that are to be applied to the relationship field or property . Since: JPA 1.0

javax.persistence.PessimisticLockScope.NORMAL

strategy is used, or if the entity is otherwise mapped to a secondary table, this entails locking the row(s ... does not contain the foreign key (such as relationships that are mapped to join tables or

javax.persistence.PessimisticLockScope

if the entity is otherwise mapped to a secondary table, this entails locking the row(s ... contain the foreign key (such as relationships that are mapped to join tables or unidirectional

EntityManagerFactory.getProperties() - JPA Method

JPA Method in javax.persistence.EntityManagerFactory Map getProperties () Get the properties and associated values that are in effect for the entity manager factory. Changing the contents of the map does not change the configuration in effect. Return: properties Throws: IllegalStateException - if the entity manager factory has been closed Since: JPA 2.0

Subquery.correlate(parentMap) - JPA Method

JPA Method in javax.persistence.criteria.Subquery MapJoin correlate (    MapJoin  parentMap ) Create a subquery map join object correlated to a map join object of the enclosing query. Parameters: parentMap - join object of the containing query Return: subquery join Since: JPA 2.0

JDOHelper.getPersistenceManagerFactory(props,pmfClassLoader) - JDO Static Method

(    Map  props,    ClassLoader pmfClassLoader ) Get a PersistenceManagerFactory based on a Map and a class loader. This method delegates to the getPersistenceManagerFactory method that takes a Map of overrides and a Map of properties, passing null as the overrides

Query.executeWithMap(parameters) - JDO Method

JDO Method in javax.jdo.Query Object executeWithMap (    Map  parameters ) Execute ... the Map values. Each Map entry consists of a key which is the name of the parameter in the declareParameters method, and a value which is the value used in the execute method. The keys in the Map

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader,pmfLoader) - JDO Static Method

(    Map  overrides,    String name,    ClassLoader ... .ConnectionFactory2Name", "javax.jdo.option. Mapping ", "javax.jdo. mapping .Catalog", "javax.jdo. mapping .Schema", "javax ... . Parameters: overrides - a Map containing properties that override properties defined in any resources

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

;    Map  parameters ) Add a subquery to this query. The Map version of the method treats the key of each map entry as the name of the parameter in the subquery, with or without the leading ... is the empty String for either the parameter or the value of the String[], or for any map key or value

PersistenceManagerFactory.getMapping() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory String getMapping () Get the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Return: the Mapping setting. Since: JDO 1.0

Query.setExtensions(extensions) - JDO Method

JDO Method in javax.jdo.Query void setExtensions (    Map  extensions ) Set multiple extensions, or use null to clear all extensions. Map keys and values are not standard. An implementation must ignore entries that are not recognized. Parameters: extensions - the map of extensions See Also: addExtension Since: JDO 2.0

javax.jdo.PersistenceManager

Since: JDO 1.0 Object getUserObject (Object key) Get the value for the specified key from the map ... -value pair into the map of user objects. Since: JDO 2.0 void refresh (Object pc) Refresh ... removeUserObject (Object key) Remove the specified key and its value from the map of user objects

javax.jdo.annotations.Value

JDO Annotation Value Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the value of a map relation. Corresponds to the xml element "value". Since: JDO 2 ... "" Whether this value is embedded. Since: JDO 2.1 Embedded [] embeddedMapping default {} The embedded mapping

javax.jdo.annotations.Persistent

{} Column definition(s) for this member. Used for mapping multiple columns to the same member ... where this value is mapped (bidirectional relationship). Since: JDO 2.1 String name default "" Name

javax.jdo.annotations.Key

JDO Annotation Key Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the key of a map relation. Corresponds to the xml element "key". Since: JDO 2.1 ... is embedded. Since: JDO 2.1 Embedded [] embeddedMapping default {} The embedded mapping for the key