ObjectDB Database Search
101-150 of 200 resultsOptimistic 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 | |
The attribute column name (EXCEPTION) is a reserved SQL-99 keyword. How do I fix this error/warning that Netbeans gives me? "The attribute column name (EXCEPTION) is a reserved SQL-99 keyword." ThreaT Ashton Hogan This warning indicates mapping to a field in the database that its name conflicts with SQL. This is not an issue with ObjectDB | |
is JDO field attribute "indexed" supported?. But there is another way which is to specify an indexed attribute on the field element, like or indexed="true". It doesn't | |
Remove an entity which attributes were changed - OptimisticLockException 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 | |
Using of ConcurrentHashMap as attribute Hello, it is possible to use an entity attribute of type java.util.concurrent.ConcurrentHashMap Your web site http://www.objectdb.com/object/db/database/features 'Object Model & Data Types' has no guidelines about this data type. Best regards btc_es BTC EmbeddedSystems You can persist a Map field | |
How to apply constraints in collection attributes of entity. How to apply constraints like unique, not null ...etc in collection attribute of a entity. Example : @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long Id; private List PhoneNumbers; public Agent() { } public | |
Get the last occurence of a list attributGet the last occurence of a list attribut | |
Accessiblity of attributes in entities in several OSGi-BundlesAccessiblity of attributes in entities in several OSGi-Bundles | |
InterfaceRef jakarta.persistence.criteria.Join Methods Attribute getAttribute () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Return: metamodel attribute or null Since: JPA ... attribute . Parameters: collection - target of the join Return: the resulting join Inherited from | |
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 | |
Support Attribute Conversion for Persistence The @Converter annotation and the Attribute Converter interface have two big benefits: 1) They make it possible to persist any as-yet-unsupported java types that do not implement java.io.Serializable. (If they do, it is possible to persist them automatically by turning on the option in | |
InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType) 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 Return: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type is not declared in | |
InterfaceRef jakarta.persistence.metamodel.EntityType. Since: JPA 2.0 Public Methods 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 Return: declared id attribute Throws | |
InterfaceRef jakarta.persistence.PersistenceUnitUtil (E entity, Attribute attribute ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: entity - entity instance containing the attribute attribute - attribute whose load state is to be determined Return: false if entity's | |
InterfaceRef jakarta.persistence.criteria.Fetch Super Interfaces: FetchParent Represents a join-fetched association or attribute . Since: JPA 2.0 Public Methods Fetch fetch ( PluralAttribute attribute ) Create a fetch join to the specified collection-valued attribute using an inner join. Parameters: attribute - target of the join Return | |
InterfaceRef jakarta.persistence.metamodel.SingularAttribute JPA Interface SingularAttribute Type Parameters: - The type containing the represented attribute - The type of the represented attribute Super Interfaces: Attribute , Bindable Instances of the type ... type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned. If the bindable type | |
InterfaceRef jakarta.persistence.criteria.FetchParent Fetch fetch ( PluralAttribute attribute ) Create a fetch join to the specified collection-valued attribute using an inner join. Parameters: attribute - target of the join Return: the resulting join Since: JPA 2.0 Fetch fetch ( PluralAttribute attribute , JoinType jt) Create | |
InterfaceRef jakarta.persistence.criteria.CriteriaUpdate: the query root Since: JPA 2.1 CriteriaUpdate set ( Path attribute , Expression value) Update the value of the specified attribute . Parameters: attribute - attribute to be updated value ... ; attribute , X value) Update the value of the specified attribute . Parameters: attribute | |
InterfaceRef jakarta.persistence.spi.ProviderUtil of an entity or entity attribute . Since: JPA 2.0 Public Methods LoadState isLoaded (Object  ... of all attributes for which FetchType.EAGER has been specified have been loaded, this method returns ... all attributes with FetchType.EAGER have been loaded, this method returns LoadState.NOT_LOADED | |
AnnotationRef jakarta.persistence.Convert conversion of id attributes , of version attributes , of relationship attributes , or of attributes ... portable. The Convert annotation may be applied to: a basic attribute , or a plain of any type ... is applied to the specified attribute of the embeddable instances contained in the collection a map | |
InterfaceRef jakarta.persistence.criteria.Path Represents a simple or compound attribute path from a bound type or collection, and is a "primitive ... to the referenced map-valued attribute . Parameters: map - map-valued attribute Return: expression corresponding to the referenced attribute Since: JPA 2.0 Expression get ( PluralAttribute collection | |
AnnotationRef jakarta.persistence.Converter , the persistence provider 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 ... annotation may be used to override or disable auto-apply conversion on a per- attribute basis. In determining | |
InterfaceRef jakarta.persistence.AttributeNode JPA Interface AttributeNode Type Parameters: - The type of the attribute . Represents an attribute ... Methods String getAttributeName () Return the name of the attribute corresponding to the attribute node. Return: name of the attribute Since: JPA 2.1 Map getKeySubgraphs () Return a map of subgraphs | |
AnnotationRef jakarta.persistence.NamedEntityGraph of the graph of associated attributes and entities fetched when an operation which retrieves an instance ... ...) . Since: JPA 2.1 Public Annotation Attributes NamedAttributeNode [] attributeNodes default {} (Optional) A list of attributes of the entity that are included in this graph. Since: JPA 2.1 boolean | |
InterfaceRef jakarta.persistence.AttributeConverter of the entity attribute - a basic type representing the type of the database column Interface implemented by custom attribute converters . A converter is a class whose methods convert between: the target type ... Since: JPA 1.0 Public Methods Y convertToDatabaseColumn (X attribute ) Converts the value stored | |
AnnotationRef jakarta.persistence.MapsId 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 to which the relationship attribute | |
InterfaceRef jakarta.persistence.PersistenceUtil to determine the load state of an entity or entity attribute regardless of which persistence provider in ... of an entity passed as a reference. An entity is considered loaded if all attributes for which FetchType.EAGER ... the load state of an attribute . Not doing so might lead to unintended loading of state. Parameters: entity | |
Graph | |
Graph | |
InterfaceRef jakarta.persistence.EntityManager is pessimistic and the entity has a version attribute , the persistence provider must perform ... and the lock mode type is pessimistic and the entity has a version attribute , the persistence provider ... and the lock mode type is pessimistic and the entity has a version attribute , the persistence provider | |
ProviderUtil.isLoadedWithReference(entity,attributeName) - JPA Method that the entity has been provided by itself and that the state of the specified attribute has been loaded ... itself and that either the entity attributes with FetchType.EAGER have not been loaded or that the state of the specified attribute has not been loaded, this method returns LoadState.NOT_LOADED | |
AnnotationRef jakarta.persistence.NamedAttributeNode Annotation Attributes String keySubgraph default "" (Optional) If the attribute references a Map type ... . A keySubgraph can not be specified without the Map attribute also being specified. If the target type ... subclass-specific attributes . Superclass subgraph entries are merged into subclass subgraphs | |
Subgraph.addKeySubgraph(attributeName,type) - JPA Method that include related managed types. Subclass subgraphs will include the specified attributes of superclass subgraphs Parameters: attributeName - name of the attribute type - entity subclass Return: subgraph for the attribute Throws: IllegalArgumentException - if the attribute is not an attribute | |
Subgraph.addSubgraph(attributeName,type) - JPA Method of the entity graph. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs Parameters: attributeName - name of the attribute type - entity subclass Return: subgraph for the attribute Throws: IllegalArgumentException - if the attribute is not an attribute | |
Graph | |
Graph | |
Graph | |
EntityGraph.addKeySubgraph(attributeName,type) - JPA Method attributes of superclass subgraphs Parameters: attributeName - name of the attribute type - entity subclass Return: subgraph for the key attribute Throws: IllegalArgumentException - if the attribute is not an attribute of this entity. IllegalArgumentException - if the attribute's target type is not | |
EntityGraph.addSubgraph(attributeName,type) - JPA Method of the entity graph. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs. Parameters: attributeName - name of the attribute type - entity subclass Return: subgraph for the attribute Throws: IllegalArgumentException - if the attribute is not an attribute | |
AnnotationRef jakarta.persistence.AttributeOverride class (or embeddable class of one of its attributes ). May be applied to an element collection ... the name of the attribute that is being overridden in order to specify it as part of the map key or map ... in the name element to indicate an attribute within an embedded attribute . The value of each | |
ProviderUtil.isLoadedWithoutReference(entity,attributeName) - JPA Method that the entity has been provided by itself and that the state of the specified attribute has been loaded ... has been provided by itself and that either entity attributes with FetchType.EAGER have not been loaded or that the state of the specified attribute has not been loaded, this method returns LoadState.NOT_LOADED | |
SingularAttribute.isId() - JPA Method JPA Method in jakarta.persistence.metamodel.SingularAttribute boolean isId () Is the attribute an id attribute ? This method returns true if the attribute is a plain, an plain, or an attribute of an plain. Return: boolean indicating whether the attribute is an id Since: JPA 2.0 | |
InterfaceRef jakarta.persistence.metamodel.Bindable JPA Interface Bindable Type Parameters: - 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 ... object. If the bindable type of the object is PLURAL_ ATTRIBUTE , the Java element type is returned | |
AnnotationRef jakarta.persistence.OrderBy is used to refer to an attribute within an embedded attribute . The value of each identifier used ... to specify the attribute or attributes that determine the ordering. The OrderBy annotation is not used ... Since: JPA 1.0 Public Annotation Attributes String value default "" An orderby_list . Specified as | |
AnnotationRef jakarta.persistence.AssociationOverride to indicate an attribute within an embedded attribute . The value of each identifier used with the dot ... the name of the attribute within the embeddable class that is being overridden in order to specify ... MappedSuperclass AttributeOverride Since: JPA 1.0 Public Annotation Attributes ForeignKey foreignKey | |
Subgraph.addSubgraph(attributeName) - JPA Method of the attribute Return: subgraph for the attribute Throws: IllegalArgumentException - if the attribute is not an attribute of this managed type. IllegalArgumentException - if the attribute's target type | |
Subgraph.addKeySubgraph(attributeName) - JPA Method: attributeName - name of the attribute Return: subgraph for the key attribute Throws: IllegalArgumentException - if the attribute is not an attribute of this entity. IllegalArgumentException - if the attribute's target type is not a managed type IllegalStateException - if this EntityGraph has been statically defined Since: JPA 2.1 | |
Graph |