ObjectDB Database Search

101-150 of 200 results

Catching exceptions from online backup

. join ( ) ; } catch ( InterruptedException e ) {     e . printStackTrace ... .     backupThread . start ( ) ;     backupThread . join ... of the inner catch block.   jakab Gergely Jakab Maybe the catch block is executed

No clue how to query with collection

INNER JOIN c.addresses ORDER BY SIZE(c.addresses) 0 ? CONCAT(c.addresses[0].street + c.addresses[1 ... this query: SELECT c, a FROM Customer INNER JOIN c.addresses a ORDER BY a.street WHERE a.active ... itself... Alex quasado Alexander Adam Maybe something like: SELECT c, a FROM Customer LEFT JOIN c.addresses

slow performance for a complex query

. When the inner query is not dependent on the outer query - no JOIN is required. But such nested ... of  Organisation . The inner loop is executed about 100M times. In cases with complex AND/OR structures like this, sometimes JOIN can only be implemented by nested full scan (and indexes cannot help

@OneToOne query issue with OR and IS NULL

query: SELECT a FROM A a JOIN a.another b WHERE a.another IS NULL OR b.counter = 0 You missed the A instance with no another because navigation through a relationship is implemented using JOIN (i.e. INNER JOIN ), and only the A instance that has another passes the FROM clause, which precedes

OR not working with isNull

INNER JOIN . This is a requirement of the JPA specification, which is known to cause some confusion. You have to use LEFT OUTER JOIN explicitly to cover entities with a null owner. support Support ... is probably converted to something such as: SELECT e FROM MyEntity e JOIN e.owner o WHERE o IS NULL

InterfaceRef jakarta.persistence.TypedQuery

has not been joined to the transaction QueryTimeoutException - if the statement execution exceeds ... and there is no transaction or the persistence context has not been joined to the transaction ... context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails

FetchParent.fetch(attribute,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    PluralAttribute  attribute,     JoinType  jt ) Create a fetch join to the specified collection-valued attribute using the given join type. Parameters: attribute - target of the join jt - join type Return: the resulting join Since: JPA 2.0

FetchParent.fetch(attribute,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    SingularAttribute  attribute,     JoinType  jt ) Create a fetch join to the specified single-valued attribute using the given join type. Parameters: attribute - target of the join jt - join type Return: the resulting fetch join Since: JPA 2.0

FetchParent.fetch(attributeName,jt) - JPA Method

;attributeName,     JoinType  jt ) Create a fetch join to the specified attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type Return: the resulting fetch join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

From.joinList(attributeName,jt) - JPA Method

;attributeName,     JoinType  jt ) Create a join to the specified List-valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type Return: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

From.joinMap(attributeName,jt) - JPA Method

;attributeName,     JoinType  jt ) Create a join to the specified Map-valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type Return: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

From.joinSet(attributeName,jt) - JPA Method

;attributeName,     JoinType  jt ) Create a join to the specified Set-valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type Return: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

From.joinCollection(attributeName,jt) - JPA Method

 attributeName,     JoinType  jt ) Create a join to the specified Collection-valued attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type Return: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

AnnotationRef jakarta.persistence.Embeddable

class or static inner class, or a Java record type, have a public or protected constructor

AnnotationRef jakarta.persistence.Entity

JPA Annotation Entity Target: TYPE Implemented Interfaces: Annotation Declares that the annotated class is an entity. The annotated entity class must: be a non- final top-level class or static inner class, have a public or protected constructor with no parameters, and have no final methods or

EnumRef jakarta.persistence.PessimisticLockScope

and relationships owned by the entity that are contained in join tables are locked if the property jakarta ... ). Locking such a relationship or element collection generally locks only the rows in the join table or ... of that instance. If a joined inheritance strategy is used, or if the entity is otherwise mapped

InterfaceRef jakarta.persistence.criteria.PluralJoin

type of the collection Super Interfaces: Expression , FetchParent , From , Join , Path , Selection , TupleElement The PluralJoin interface defines functionality that is common to joins to all collection ... corresponding to the join . Return: metamodel collection-valued attribute corresponding to the target of the join Since: JPA 2.0

Subquery.correlate(parentList) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery ListJoin correlate (    ListJoin  parentList ) Create a subquery list join object correlated to a list join object of the enclosing query. Parameters: parentList - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentMap) - JPA Method

JPA Method in jakarta.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

Subquery.correlate(parentSet) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery SetJoin correlate (    SetJoin  parentSet ) Create a subquery set join object correlated to a set join object of the enclosing query. Parameters: parentSet - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentCollection) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery CollectionJoin correlate (    CollectionJoin  parentCollection ) Create a subquery collection join object correlated to a collection join object of the enclosing query. Parameters: parentCollection - join object of the containing query Return: subquery join Since: JPA 2.0

AnnotationRef jakarta.persistence.MapKeyColumn

relationship or for a OneToMany entity relationship using a join table, the map key column is in a join table. If the map key is for a OneToMany entity relationship using a foreign key mapping ... a join table, the name of the join table for the map. If the map key is for a OneToMany entity

AnnotationRef jakarta.persistence.ManyToMany

the join table . Every many-to-many association has two sides, the owning side and the non-owning, or inverse, side. The join table is specified on the owning side. If the association is bidirectional ... side. The join table for the relationship, if not defaulted, is specified on the owning side. The JoinTable

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

AnnotationAttrRef jakarta.persistence.CollectionTable.joinColumns

of the entity. The default only applies if a single join column is used. The default is the same as ... of the referenced primary key column.) However, if there is more than one join column, a JoinColumn annotation must be specified for each join column using the JoinColumns annotation. In this case

AnnotationRef jakarta.persistence.CollectionTable

only applies if a single join column is used. The default is the same as for JoinColumn (i.e ... column.) However, if there is more than one join column, a JoinColumn annotation must be specified for each join column using the JoinColumns annotation. In this case, both the name

AnnotationRef jakarta.persistence.SecondaryTable

table. If no primary key join columns are specified, the join columns are assumed to reference ... PrimaryKeyJoinColumn [] pkJoinColumns default {} (Optional) The columns that are used to join

CollectionJoin.on(restrictions) - JPA Method

;Predicate... restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restrictions - zero or more restriction predicates Return: the modified join object Since: JPA 2.1

CollectionJoin.on(restriction) - JPA Method

; Expression  restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restriction - a simple or compound boolean expression Return: the modified join object Since: JPA 2.1

FetchParent.getFetches() - JPA Method

JPA Method in jakarta.persistence.criteria.FetchParent 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 Since: JPA 2.0

From.getJoins() - JPA Method

JPA Method in jakarta.persistence.criteria.From 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 Since: JPA 2.0

Fetch.getJoinType() - JPA Method

JPA Method in jakarta.persistence.criteria.Fetch JoinType getJoinType () Return the join type used in the fetch join . Return: join type Since: JPA 2.0

ListJoin.on(restrictions) - JPA Method

;restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restrictions - zero or more restriction predicates Return: the modified join object Since: JPA 2.1

ListJoin.on(restriction) - JPA Method

;restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restriction - a simple or compound boolean expression Return: the modified join object Since: JPA 2.1

MapJoin.on(restrictions) - JPA Method

;restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restrictions - zero or more restriction predicates Return: the modified join object Since: JPA 2.1

MapJoin.on(restriction) - JPA Method

;restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restriction - a simple or compound boolean expression Return: the modified join object Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.JoinColumn.referencedColumnName

column is in the entity table of the owning entity, or inverse entity if the join is part of the inverse join definition. When used in a CollectionTable mapping, the referenced column is in the table of the entity containing the collection. Default (only applies if single join column is being used

SetJoin.on(restrictions) - JPA Method

;restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restrictions - zero or more restriction predicates Return: the modified join object Since: JPA 2.1

SetJoin.on(restriction) - JPA Method

;restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restriction - a simple or compound boolean expression Return: the modified join object Since: JPA 2.1

CriteriaQuery.select(selection) - JPA Method

to specify the type of the select item when it results from a get or join operation and the query result ... ;)); CriteriaQuery q2 = cb.createQuery(Product.class); q2.select(q2.from(Order.class) . join ("items") . join

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

from a get or join operation and the query result type is specified. For example: CriteriaQuery q ... .from(Order.class) . join ("items") . join ("product")); Parameters: selection

JPQL support for Maps (JPA 2.0)

. It seems to me they are not supported. Query : "SELECT s FROM Session s JOIN s.data d WHERE VALUE(d) = :value" Object ... ;  @MapKeyColumn(name = "DATA_KEY")     @JoinFetch( INNER )    ... yet. Try: SELECT s FROM Session s JOIN s.data d WHERE d = :value support Support That works. 

EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL

) that correspond to the non-collection-valued persistent state of that instance. If a joined inheritance ... for which the entity does not contain the foreign key (such as relationships that are mapped to join tables or

EnumConstRef jakarta.persistence.PessimisticLockScope.EXTENDED

that are contained in join tables are locked if the property jakarta.persistence.lock.scope is specified ... collection generally locks only the rows in the join table or collection table for that relationship

PluralJoin.getModel() - JPA Method

JPA Method in jakarta.persistence.criteria.PluralJoin PluralAttribute getModel () Return the metamodel representation for the collection-valued attribute corresponding to the join . Return: metamodel collection-valued attribute corresponding to the target of the join Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.AssociationOverride.joinColumns

JPA Annotation Attribute in jakarta.persistence.AssociationOverride JoinColumn [] joinColumns default {} The join column(s) being mapped to the persistent attribute(s). The joinColumns elements ... . 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

AnnotationAttrRef jakarta.persistence.AssociationOverride.joinTable

JPA Annotation Attribute in jakarta.persistence.AssociationOverride JoinTable joinTable default @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

EnumRef jakarta.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined ... Persistence context must be explicitly joined to the current transaction Since: JPA 2.1 Public Static Enum

AnnotationAttrRef jakarta.persistence.MapKeyColumn.table

entity relationship using a join table, the name of the join table for the map. If the map key

AnnotationAttrRef jakarta.persistence.MapKeyColumn.name

a join table, the map key column is in a join table. If the map key is for a OneToMany entity