ObjectDB Database Search

1-50 of 125 results

JPA Metamodel Attributes

and enumerations to represent the attributes of managed persistent types (entities, embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence (JPA) 3. Base attribute definitions The core abstractions of model attributes  are the following components: The top-level

JPA Attributes Annotations

Jakarta Persistence (JPA) annotations define how entity attributes (fields and properties ... using the following annotations: Sets a field or property of a basic attribute (e.g., primitives ... (Lazy/Eager) and nullability. Specifies a persistent field or property as an embedded attribute

jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute)

(    E entity ,    Attribute attribute ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attribute - attribute whose load state is to be determined entity - entity instance containing the attribute Returns: false

jakarta.persistence.PersistenceUnitUtil.load(E,Attribute)

;  E entity ,    Attribute attribute ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context ... and attribute . Parameters: attribute - the attribute to be loaded entity - entity instance to be loaded

jakarta.persistence.metamodel.Attribute.getPersistentAttributeType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute PersistentAttributeType getPersistentAttributeType() Return the persistent attribute type for the attribute . Returns: persistent attribute type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.isAssociation()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute boolean isAssociation() Is the attribute an association. Returns: boolean indicating whether the attribute corresponds to an association. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.isCollection()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute boolean isCollection() Is the attribute collection-valued (represents a Collection , Set , List , or Map ). Returns: boolean indicating whether the attribute is collection-valued. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.getDeclaringType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute ManagedType getDeclaringType() Return the managed type representing the type in which the attribute was declared. Returns: declaring type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.getJavaType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute Class getJavaType() Return the Java type of the represented attribute . Returns: Java type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.getJavaMember()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute Member getJavaMember() Return the Member for the represented attribute . Returns: corresponding Member . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Attribute.getName()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Attribute String getName() Return the name of the attribute . Returns: name. Since: Jakarta Persistence (JPA) 1.0

Database Management Settings

specifies the database file and page size settings: The initial attribute specifies the initial size for each new database file. The resize attribute specifies the size by which to extend the database ... . The page attribute specifies the size of a page in a database file. The default value of 2 KB

jakarta.persistence.EntityGraph

that will be used as a template to define the attribute nodes and boundaries of a graph of entities ... the corresponding attribute nodes as well; such attribute nodes should not be redundantly specified ... ) Get an existing attribute node for the attribute with the given name, or add a new attribute node

jakarta.persistence.Graph

Instance Methods AttributeNode addAttributeNode ( String attributeName ) Get an existing attribute node for the attribute with the given name, or add a new attribute node if there is no existing node. Parameters: attributeName - name of the attribute Returns: the attribute node. Throws

Schema Update

... ... A element has two roles: If you specify the optional new-name attribute , the package name changes from the original name (specified by the required name attribute ) to the new name. All classes in that package are moved to the new package. Additionally, regardless of whether a new-name attribute

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection

Problem with distinct select, order by and equivalent alias/attribute path

to me switching from alias to attribute path between projection and order by part... bklink Benjamin Klink

Get the last occurence of a list attribut

Get the last occurence of a list attribut

Index Definition

. The optional name attribute has no specific function but might appear in the ObjectDB Explorer and in log ... multiple fields in the members attribute of the @Index or @Unique annotation: @Entity @Index ( members ... lastName; } When you specify indexed fields in the members attribute , you can attach the @Index or @Unique

JPA Metamodel Types

, Strings, or Dates) that do not contain persistent  attributes of their own. An enumeration ... state through attributes form the core of the metamodel: The common superinterface for entities, mapped superclasses, and embeddables, representing any type that manages attributes . A managed type

Apache License, Version 2.0, January 2004

, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices ... copy of the attribution notices contained within such NOTICE file, excluding those notices ... are for informational purposes only and do not modify the License. You may add Your own attribution notices

Server Configuration

to the server: The port attribute specifies the TCP port on which the server listens for new ... the connection URL string, as explained in the JPA Overview section. The max attribute specifies ... of connections. The element The element has one attribute , path , which specifies the location of ObjectDB

Database Replication and Clustering

with the appropriate elements in its configuration file: The url attribute of the element specifies ... and password attributes . The slave server uses these credentials to connect to the master server ... and password attributes must be for a user on the slave server, not the master server. Finally

jakarta.persistence.Convert

would otherwise apply. The Convert annotation should not be used to specify conversion of id attributes , of version attributes , of relationship attributes , or of attributes explicitly declared as Enumerated or ... may be applied to: a basic attribute , or a collection attribute of any type other than Map , in which case

JPA Criteria Query Expressions

predicate ├─ Path # Navigation path ( attributes ) ├─ ParameterExpression # Query parameter ... predicates. A navigation path to an attribute value or a referenced entity. A type-safe representation

jakarta.persistence.PersistenceUnitUtil

the load state of a given persistent attribute of an entity belonging to the persistence unit. Overrides PersistenceUtil.isLoaded Parameters: attributeName - name of attribute whose load state is to be determined entity - entity instance containing the attribute Returns: false if entity's state

jakarta.persistence.Converter

must automatically apply the converter to every mapped attribute of the specified target type belonging to any entity in the persistence unit, except for attributes for which conversion is overridden by means ... auto-apply conversion on a per- attribute basis. In determining whether a converter applies

Database Transaction Replayer

by setting the path attribute in the configuration . The recording directory contains two types

JPA Persistable Types

can be set explicitly by using the name attribute of the @Entity annotation: @Entity ( name ="MyName

jakarta.persistence.NamedEntityGraph

to the root entity of the graph, and specifies the limits of the graph of associated attributes and entities ... Persistence (JPA) 1.0 NamedAttributeNode[] attributeNodes (Optional) A list of attributes of the entity ... includeAllAttributes (Optional) Includes all of the attributes of the annotated entity class as attribute nodes

jakarta.persistence.MapsId

: Annotation Target: Method, Field Designates a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key, an attribute within an EmbeddedId primary key, or a simple primary key of the parent entity. The value element specifies the attribute within a composite key

jakarta.persistence.PersistenceUtil

from the Persistence class is used to determine the load state of an entity or entity attribute ... ) Determine the load state of a given persistent attribute . Parameters: attributeName - name of attribute whose load state is to be determined entity - entity containing the attribute Returns: false if entity's

jakarta.persistence.EntityManager

within the persistence context and the lock mode type is pessimistic and the entity has a version attribute ... mode type is pessimistic and the entity has a version attribute , the persistence provider must perform ... attribute , the persistence provider must perform optimistic version checks when obtaining the database

jakarta.persistence.NamedAttributeNode

(Required) The name of the attribute that must be included in the graph. Since: Jakarta Persistence (JPA) 1.0 String subgraph (Optional) If the attribute references a managed type ... -specific attributes . Superclass subgraph entries will be merged into subclass subgraphs. The value

jakarta.persistence.metamodel.ManagedType.getAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Attribute 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

jakarta.persistence.metamodel.ManagedType.getDeclaredAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Attribute 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

jakarta.persistence.metamodel.SingularAttribute.isId()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.SingularAttribute boolean isId() Is the attribute an id attribute ? This method returns true if the attribute is a simple id , an embedded id , or an attribute of an id class . Returns: boolean indicating whether the attribute is an id. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.IdentifiableType.getDeclaredVersion(Class)

SingularAttribute getDeclaredVersion (    Class type ) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared version attribute Returns: declared version attribute . Throws

jakarta.persistence.metamodel.IdentifiableType.getId(Class)

SingularAttribute getId (    Class 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

jakarta.persistence.metamodel.IdentifiableType.getDeclaredId(Class)

SingularAttribute getDeclaredId (    Class 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

jakarta.persistence.metamodel.IdentifiableType.getVersion(Class)

SingularAttribute getVersion (    Class type ) Return the attribute that corresponds to the version attribute of the entity or mapped superclass. Parameters: type - the type of the represented version attribute Returns: version attribute . Throws: IllegalArgumentException - if version attribute

jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String,Class)

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-valued attribute with given name and type. Throws: IllegalArgumentException - if attribute

jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String,Class)

-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 attribute Returns: declared single-valued attribute of the given name and type. Throws

jakarta.persistence.metamodel.ManagedType.getMap(String,Class,Class)

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 of the represented attribute valueType - the value type of the represented attribute Returns: MapAttribute

jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String,Class,Class)

) 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 - the key type of the represented attribute valueType - the value type of the represented attribute Returns

jakarta.persistence.criteria.Path.get(SingularAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Path Path get (    SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute . Parameters: attribute - single-valued attribute Returns: path corresponding to the referenced attribute . Since: Jakarta Persistence (JPA) 1.0

Step 4: Add a Servlet Class

is retrieved from the application scope attribute , and then an EntityManager (representing a database ... are retrieved from the database and stored in the request's "guest" attribute . Then the processing ... " attribute to generate the page output. Finally, the database connection (including the transaction

Step 3: Add a Context Listener Class

an application scope attribute in the servlet context - when the web application starts ( contextInitialized ). Retrieves the EntityManagerFactory from the application scope attribute and closes

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's guestDao attribute that is set by

Step 4: Add a Controller Class

attribute (whose name is "guestDao" and its value is guestDao ). The next step is  adding