ObjectDB Database Search

101-150 of 200 results

Fetching Collections Puzzle

;colletions are to be lazy fetched. You can try this in a query.  "select n from Node n left outer join fetch n.children where ....." this will also fetch your collection. Basically you can use

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map   thanks, Alex quasado Alexander Adam Yes

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

; + " left join s.location as s_location "            ... ; + " left join s.location as s_location "            ... ;  + " left join s.location as s_location "          

find() cost unreasonable time!

@Inheritance(strategy=InheritanceType. JOINED ) // Success for Inheritance Sonsection //@Cache(size=10000 ... ){    Nodes cur = queue.pop();    Nodes left = new Nodes();    left .setParent(cur);    em.persist( left ); ++iNum;    Nodes right = new Nodes();   

slow performance for a complex query

structures like this, sometimes JOIN can only be implemented by nested full scan (and indexes cannot help). There are different types of nested queries. Some nested queries are actually equivalent to JOIN . When the inner query is not dependent on the outer query - no JOIN is required. But such nested

Performance issue with query

Hello, we have an issue with following query which needs with objectdb-2.7.6_07 only 15 - 30 milli seconds, but since objectdb-2.7.6_08 the query needs round about 3000 ms. I added a database example in a ticket. SELECT a FROM ArtifactImpl a LEFT OUTER JOIN a.tcSignal s WHERE a.endStep.stepNumber = 2000 AND a.startStep.stepNumber

ObjectDB 2.8.1

Improved query plan evaluation (including for selecting composite indexes). Fixed new statistics collection for queries. Fixed a bug in LEFT OUTER JOIN queries ( issue #2438 ).

2.9.x query issue with @Unique constraint

(for LEFT OUTER JOIN ). [Step 4] Merge the results of steps 2, 3 using OR. [Step 5] Apply selection

InterfaceRef jakarta.persistence.criteria.SetJoin

JPA Interface SetJoin Type Parameters: - the source type of the join - the element type of the target {@code Set} Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The SetJoin interface is the type of the result of joining to a collection

InterfaceRef jakarta.persistence.criteria.CollectionJoin

JPA Interface CollectionJoin Type Parameters: - the source type of the join - the element type of the target {@code Collection} Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The CollectionJoin interface is the type of the result of joining

InterfaceRef jakarta.persistence.criteria.ListJoin

JPA Interface ListJoin Type Parameters: - the source type of the join - the element type of the target List Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The ListJoin interface is the type of the result of joining to a collection

InterfaceRef jakarta.persistence.criteria.MapJoin

JPA Interface MapJoin Type Parameters: - the source type of the join - the type of the target Map key - the type of the target Map value Super Interfaces: Expression , FetchParent , From , Join ... of joining to a collection over an association or element collection that has been specified as a java.util

AnnotationAttrRef jakarta.persistence.JoinColumn.name

. If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign key column is in the table of the source entity or embeddable. If the join is for a unidirectional ... entity. If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumn

Specifies a primary key column that is used as a foreign key to join to another table. It is used to join the primary table of an entity subclass in the JOINED mapping strategy to the primary table of its superclass; it is used within a SecondaryTable annotation to join a secondary table

AnnotationRef jakarta.persistence.JoinTable

the mapping of an association to an intermediate join table. It is applied to the owning side of an association. A join table is typically used in the mapping of many-to-many and unidirectional one-to-many ... and unidirectional). When a join table is used in mapping a relationship with an embeddable class on the owning

AnnotationRef jakarta.persistence.AssociationOverride

element is used. If the relationship mapping uses a join table, the joinTable element must be specified to override the mapping of the join table and/or its join columns. Example 1: Overriding ... [] joinColumns default {} The join column(s) being mapped to the persistent attribute(s). The joinColumns

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.table

) The name of the table that contains the foreign key column. If the join is for a map key for an element collection, the foreign key column is in the collection table for the map value. If the join ... a join table, the foreign key column is in a join table. If the join is for a OneToMany entity

Issue with UPPER ?

Hi, Assuming those queries which are all the same except the UPPER calls: # Case (1) SELECT COUNT($1) FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $1 LEFT JOIN $1.mitgliedschaft $2 LEFT JOIN $1.profile $3 LEFT JOIN $3.organisation $4 LEFT JOIN $1.postalAddresses $5 LEFT JOIN $1

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.name

upon the context. If the join is for a map key for an element collection, the foreign key column is in the collection table for the map value. If the join is for a map key for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table, the foreign key column is in a join

Subquery.correlate(parentJoin) - JPA Method

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

AnnotationAttrRef jakarta.persistence.JoinColumn.table

to be in the primary table of the applicable entity. Default: If the join is for a OneToOne or ManyToOne ... embeddable. If the join is for a unidirectional OneToMany mapping using a foreign key mapping strategy, the name of the table of the target entity. If the join is for a ManyToMany mapping or for a OneToOne or

InterfaceRef jakarta.persistence.Query

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

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

Server out of memory exceptions

application startup & shutdown cycles. Each cycle of the outer loop should create 10 writer threads (5 ... ) if I enable another 5 threads to read from test1 and write to test2 - I've left this commented ... it looked ok but when I bumped up the msg size to 5mb and left it running for 25mins I got

Unexpected query token - AS

instanceEntryArtifactSet , com.btc.ep.engine.bl.internal.dmos.ArtifactImpl AS artifact LEFT JOIN artifact.activatedGoals AS artifactActivatedGoals LEFT JOIN artifact.activatedAssumptions AS artifactActivatedAssumptions LEFT JOIN artifact.activatedCalibrations AS artifactActivatedCalibrations

Internal Exception

.lexware.vereinsverwaltung.abrechnung.beitrag.BeitragForderung $1 LEFT JOIN $1.currency $2 LEFT JOIN $1.paymentTerm $3 LEFT JOIN $1.receiver $4 WHERE ((((($2 IS NOT NULL) AND (UPPER($2.isoCode) LIKE UPPER

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

FetchParent.fetch(attribute) - JPA Method

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

FetchParent.fetch(attribute) - JPA Method

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

FetchParent.fetch(attributeName) - JPA Method

JPA Method in jakarta.persistence.criteria.FetchParent Fetch fetch (   String attributeName ) Create a fetch join to the specified attribute using an inner join . Parameters: attributeName - name of the attribute for the target of the join Return: the resulting fetch join Throws

CriteriaQuery.orderBy(o) - JPA Method

ordering, if any, is simply removed, and results will be returned in no particular order. The left

Weird issue with variable naming

is that we do a LEFT JOIN on an embedded property as well as ordering is involved in selection ... of our left join variable becomes $1. We're also adding a custom function expression in where clause ... .persistence.criteria. Join ; import javax.persistence.criteria.JoinType; import javax.persistence

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