ObjectDB Database Search

51-100 of 200 results

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

Can't get arraylist/vector type attributes

I have a class that contains some attributes of type Vector (also tried with ArrayList and same happens). When I try to get an object from that class doing using the find method it works fine, I get the object. But when I call the close method to close the EntityManager the information from

jakarta.persistence.metamodel.SingularAttribute

Parameters: - The type containing the represented attribute - The type of the represented attribute Super Interfaces: Attribute , Bindable Instances of the type SingularAttribute represents persistent single ... is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ ATTRIBUTE

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

Auto Generated Values

. The allocationSize attribute specifies the number of IDs in each allocation. Some IDs in an allocation ... . A minor difference relates to the initial value attribute . Whereas the SEQUENCE strategy maintains

JPA Core Types

the load state of an entity or attribute without triggering lazy loading. An extended utility interface ... attributes , and access entity content not yet fetched due to lazy loading. Provides an API for programmatic

jakarta.persistence.metamodel.ListAttribute

Interfaces: PluralAttribute , Attribute , Bindable Instances of the type ListAttribute represent persistent List -valued attributes . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class ... is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ ATTRIBUTE or

jakarta.persistence.metamodel.CollectionAttribute

Collection Super Interfaces: PluralAttribute , Attribute , Bindable Instances of the type CollectionAttribute represent persistent Collection -valued attributes . Since: Jakarta Persistence (JPA) 2.0 Public ... . If the bindable type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable

jakarta.persistence.metamodel.SetAttribute

: PluralAttribute , Attribute , Bindable Instances of the type SetAttribute represent persistent Set -valued attributes . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class ... is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ ATTRIBUTE or

jakarta.persistence.metamodel.MapAttribute

of the key of the represented Map Super Interfaces: PluralAttribute , Attribute , Bindable Instances of the type MapAttribute represent persistent Map -valued attributes . Since: Jakarta Persistence (JPA ... object. If the bindable type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned

jakarta.persistence.metamodel.PluralAttribute

- The type of the represented collection Super Interfaces: Attribute , Bindable Instances of the type PluralAttribute represent persistent collection-valued attributes . Since: Jakarta Persistence (JPA ... object. If the bindable type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned

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.criteria.Path

or compound attribute path from a bound type or collection, and is a "primitive" expression ... ) 3.2 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute . Parameters: attribute - single-valued attribute Returns: path corresponding

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

JPA Criteria Queries

, set new attribute values, and restrict the scope with a WHERE clause. Use this interface to define

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.Bindable

: - The type of the represented object or attribute An instances of the type Bindable represents an object or attribute type that can be bound into a Path . Since: Jakarta Persistence (JPA) 2.0 Public ... . If the bindable type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable type

jakarta.persistence.metamodel.Bindable.BindableType

Persistence (JPA) 1.0 PLURAL_ ATTRIBUTE Multivalued attribute type, that is, a collection. See Also: PluralAttribute Since: Jakarta Persistence (JPA) 1.0 SINGULAR_ ATTRIBUTE Single-valued attribute type

jakarta.persistence.metamodel.PluralAttribute.CollectionType

, Serializable Since: Jakarta Persistence (JPA) 1.0 Enum Constants COLLECTION Collection-valued attribute Since: Jakarta Persistence (JPA) 1.0 LIST List-valued attribute Since: Jakarta Persistence (JPA) 1.0 MAP Map-valued attribute Since: Jakarta Persistence (JPA) 1.0 SET Set-valued attribute Since: Jakarta

jakarta.persistence.Graph.getAttributeNode(String)

(    String attributeName ) Get an existing attribute node for the attribute with the given name. Parameters: attributeName - name of the attribute Returns: the attribute node. Throws: IllegalArgumentException - if the attribute is not an attribute of this entity.. NoSuchElementException

jakarta.persistence.Graph.addAttributeNode(String)

(    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: IllegalStateException - if the EntityGraph

jakarta.persistence.Graph.hasAttributeNode(String)

;  String attributeName ) Determine if there is an existing attribute node for the attribute with the given name. Parameters: attributeName - name of the attribute Returns: true if there is an existing attribute node. Throws: IllegalArgumentException - if the attribute is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Graph.addTreatedMapKeySubgraph(MapAttribute,Class)

(    MapAttribute attribute ,    Class type ) Add a node to the graph ... the specified attributes of superclass subgraphs Parameters: attribute - attribute type - entity subclass Returns: subgraph for the attribute . Throws: IllegalStateException - if this EntityGraph

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic

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

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

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 4: Add a Controller Class

.jsp" ) and passes the GuestDao component to the JSP as a request attribute (whose name is "guestDao