ObjectDB Database Search

101-150 of 200 results

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER

Set timeout for BatchQueryItr

( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

Global way to set Lazy-loading fetch functionality for all the fields

if neither objectdb nor JPA offers it). ouba64 Ouba Mahamane Lazy / Eager can only be set locally

client server set up and load

is less affected by number of users and more by the actual activity, how indexes are set , etc. support Support

Unexpected internal exception during set field of an Embeddable to null

that. But the setting of "original value" for Class IntegerSignalValueImpl works once on a attched

Unable to update a OneToMany Set

Unable to update a OneToMany Set

setting activation code in persistence.xml or env file or system properties

setting activation code in persistence.xml or env file or system properties

Iterating over large result set

Iterating over large result set

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field in the related objects is set to null. This is highly critical because it will cause data loss! The enum type is also not listed in the explorer. I am talking about an enum class, which implements

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video

Object creation in the Explorer requires automatically set primary keys

The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support

UPDATE query cannot set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

InterfaceRef jakarta.persistence.Query

- if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set ... () The position of the first result the query object was set to retrieve. Returns 0

InterfaceRef jakarta.persistence.TypedQuery

the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Inherited from: Query ... Since: JPA 3.2 int getFirstResult () The position of the first result the query object was set to retrieve

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

Since: JPA 2.0 Set getAttributes () Return the attributes of the managed type. Return: attributes ... is not declared in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type

InterfaceRef jakarta.persistence.metamodel.EmbeddableType

in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getAttributes () Return ... : ManagedType Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Return: declared attributes

InterfaceRef jakarta.persistence.metamodel.ManagedType

is not present in the managed type Since: JPA 2.0 Set getAttributes () Return the attributes ... : IllegalArgumentException - if attribute of the given name is not declared in the managed type Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set

InterfaceRef jakarta.persistence.EntityManager

with a distinct persistence context . A persistence context is a set of entity instances in which for any ... , which may be set explicitly by calling setFlushMode . For FlushModeType.COMMIT , the persistence context ... context must also be flushed before execution of any query whose result set would be affected by

InterfaceRef jakarta.persistence.criteria.From

through correlation Since: JPA 2.0 Set getFetches () Return the fetch joins that have been made from this type. Returns empty set if no fetch joins have been made from this type. Modifications to the set do not affect the query. Return: fetch joins made from this type Inherited from: FetchParent

InterfaceRef jakarta.persistence.criteria.Join

() Return the join type. Return: join type Since: JPA 2.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set if no joins have been made from this bound type. Modifications to the set do not affect the query. Return: joins made from this type Inherited from: From

AnnotationRef jakarta.persistence.NamedStoredProcedureQuery

) that are used to map the results. The resultSetMappings element names one or more result set mappings, as defined by the SqlResultSetMapping annotation. If there are multiple result sets , it is assumed that they are mapped using the same mechanism — e.g., either all via a set of result class

AnnotationRef jakarta.persistence.NamedNativeQuery

cases, a resultClass specifies how the native SQL query result set should be interpreted ... Annotation Attributes ConstructorResult [] classes default {} Specifies the result set mapping ... default {} Specifies the result set mapping to scalar values. May not be used in combination

InterfaceRef jakarta.persistence.criteria.AbstractQuery

must have: a set of root entities (which may in turn own joins). All queries may have: a conjunction ... predicate Since: JPA 2.0 Set getParameters () Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Return: the query parameters

InterfaceRef jakarta.persistence.criteria.Subquery

correlate ( SetJoin  parentSet) Create a subquery set join object correlated to a set join object ... Since: JPA 2.1 Set getCorrelatedJoins () Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Return

InterfaceRef jakarta.persistence.criteria.CriteriaUpdate

the entity of type X Return: query root corresponding to the given entity Since: JPA 2.1 Set getParameters () Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Return: the query parameters Inherited from: CommonAbstractCriteria

StoredProcedureQuery.getSingleResult() - JPA Method

result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Return: the result or null if the next item is not a result set Throws: NoResultException

StoredProcedureQuery.getSingleResultOrNull() - JPA Method

a single result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Return: the result or null if the next item is not a result set or if there is no result

StoredProcedureQuery.getResultList() - JPA Method

of results from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Return: a list of the results or null is the next item is not a result set Throws

ClassRef jakarta.persistence.PersistenceConfiguration

and vendor-specific property settings . Return: the configured properties Since: JPA 3.2 PersistenceConfiguration properties (Map  properties) Set multiple properties of this persistence unit. Parameters ... property (String name, Object value) Set a property of this persistence unit. Parameters

InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo

unit that have not been explicitly listed are to be included in the set of managed classes ... in the set of managed classes Since: JPA 1.0 ClassLoader getClassLoader () Returns ClassLoader ... of the names of the classes that the persistence provider must add to its set of managed classes. Each name

AnnotationRef jakarta.persistence.SqlResultSetMapping

a mapping of the columns of a result set of a native SQL query or stored procedure. Example: {@snippet ... ConstructorResult [] classes default {} Specifies 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

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

: result type Inherited from: AbstractQuery Since: JPA 2.0 Set getRoots () Return the query roots ... defined as a result of correlation. Returns an empty set if no roots have been defined. Modifications to the set do not affect the query. Return: the set of query roots Inherited from: AbstractQuery

InterfaceRef jakarta.persistence.criteria.SetJoin

of the target {@code Set } Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin ... over an association or element collection that has been specified as a java.util. Set . Since: JPA 2.0 Public Methods SetAttribute getModel () Return the metamodel representation for the set attribute

InterfaceRef jakarta.persistence.metamodel.Metamodel

: IllegalArgumentException - if not an entity See Also: jakarta.persistence.Entity.name Since: JPA 3.2 Set getEmbeddables () Return the metamodel embeddable types. Returns am empty set if there are no embeddable types. Return: the metamodel embeddable types Since: JPA 2.0 Set getEntities () Return the metamodel entity

InterfaceRef jakarta.persistence.EntityManagerFactory

the set of all classes that are related or grouped by the application, and which must be colocated in ... , result set mapping information, and information about stored procedure parameters. When the query is executed, information that can be set by means of the query APIs can be overridden. Information

StoredProcedureQuery.hasMoreResults() - JPA Method

if the next result corresponds to a result set , and false if it is an update count or ... to result set Throws: QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds

AbstractQuery.getRoots() - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery Set getRoots () Return the query roots ... roots defined as a result of correlation. Returns an empty set if no roots have been defined. Modifications to the set do not affect the query. Return: the set of query roots Since: JPA 2.0

StoredProcedureQuery.execute() - JPA Method

result corresponds to a result set , and false if it is an update count or if there are no results ... to result set Throws: QueryTimeoutException - if the query execution exceeds the query timeout value set ... timeout value set and the transaction is rolled back Since: JPA 2.1

EnumRef jakarta.persistence.FlushModeType

within a transaction, if AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified ... . On the other hand, if COMMIT is set , the effect of updates made to entities in the persistence context on queries

ManagedType.getDeclaredPluralAttributes() - JPA Method

JPA Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredPluralAttributes () Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multivalued attributes. Return

ManagedType.getPluralAttributes() - JPA Method

JPA Method in jakarta.persistence.metamodel.ManagedType Set getPluralAttributes () Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Return: Collection-, Set -, List-, and Map-valued attributes Since: JPA 2.0

EntityManager.createStoredProcedureQuery(procedureName,resultSetMappings) - JPA Method

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

InterfaceRef jakarta.persistence.criteria.CriteriaDelete

corresponding to the given entity Since: JPA 2.1 Set getParameters () Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query

InterfaceRef jakarta.persistence.metamodel.SetAttribute

JPA Interface SetAttribute Type Parameters: - The type the represented Set belongs to - The element type of the represented Set Super Interfaces: Attribute , Bindable , PluralAttribute Instances of the type SetAttribute represent persistent java.util. Set -valued attributes. Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.NamedNativeQuery.resultSetMapping

"" The name of a SqlResultSetMapping , as defined in metadata. The named result set mapping is used to interpret the result set of the native SQL query. Alternatively, the elements entities , classes , and columns may be used to specify a result set mapping. These elements may not be used in conjunction with resultSetMapping . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.NamedNativeQuery.resultClass

.class The class of each query result. If a result set mapping is specified, the specified result class must agree with the type inferred from the result set mapping. If a resultClass is not explicitly specified, then it is inferred from the result set mapping, if any, or defaults to Object or Object

Subquery.getCorrelatedJoins() - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery Set getCorrelatedJoins () Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Return: the correlated joins of the subquery Since: JPA 2.0

Query.getParameters() - JPA Method

JPA Method in jakarta.persistence.Query Set getParameters () Get the parameter objects corresponding to the declared parameters of the query. Returns empty set if the query has no parameters. This method is not required to be supported for native queries. Return: set of the parameter objects