ObjectDB Database Search

51-100 of 200 results

multiple LEFT JOINs do not work as expected

looks like this: SELECT DISTINCT $1 FROM Organisation $1 JOIN $1.attributeList $2 LEFT JOIN $1.parentOrg $3 LEFT JOIN $3.parentOrg $4 WHERE ((($2.name='Attribute1') AND ($2.valueAsString='1')) AND (($3.organisationId='root') OR ($4.organisationId='root'))) As I understand, since I use LEFT Joins

How do I achieve a Deep Fetch using JOIN FETCH?

of eager fetch in JPQL as follows: SELECT c FROM C JOIN FETCH c.bList WHERE c.id=:id But when I attempt to take it to the 2nd level: SELECT c FROM C JOIN FETCH c.bList JOIN FETCH c.bList.aList WHERE c.id ... : SELECT c FROM C JOIN c.bList b JOIN FETCH c.bList JOIN FETCH b.aList WHERE c.id=:id but that gets

LazyInitialization / join fetch

descrica2_2_3_ from the User usuario0_ left outer join on area area1_ usuario0_.codigo_area = area1_.codigo left outer join on User usuario2_ usuario0_.codigo_chefe = usuario2_.codigo left outer join company empresa3_ on usuario2_.codigo_empresa = empresa3_.codigo left outer join on specialty especialid4

Query with FETCH JOIN returns multiple results instead of one.

jpqlResult = em.createQuery( "SELECT d FROM Demand d JOIN FETCH d.services WHERE d=:demand ... You should be able to filter duplicates with DISTINCT: SELECT DISTINCT d FROM Demand d JOIN FETCH d.services ... is clear: SELECT d FROM Department d LEFT JOIN FETCH d.employees WHERE d.deptno = 1 "A fetch join

Possible issue for JPQL "LEFT [OUTER] JOIN"

Possible issue for JPQL "LEFT [OUTER] JOIN " is doing "[INNER] JOIN ".   Thanks. eurojet P. F ... ;   - "SELECT a,b FROM A a LEFT OUTER JOIN a.listB b WHERE b IS NULL" where the output ... -valued field.     - "SELECT a,b FROM A a LEFT OUTER JOIN a.listB b WHERE b.id IS NULL

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

this article, join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. Is an "All eager strategy" more efficient that many join fetch ( cartesian product + distinct ... all strategy" Or "Fetch Join strategy" for ObjectDb ? Regards, Xirt xirt Sylvain Is an "All eager

InternalError on multiple AND and JOIN Query

Hi, Using objectdb 2.2.8_06. Running the following query: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.contactDetails $2 JOIN $2.addresses $3 JOIN $3.attributeList $4  JOIN $2.phoneNumbers $5 JOIN $5.attributeList $6 WHERE ((($4.name='suburb') AND ($4.valueAsString='Los Angeles')) AND (($6.name

How to use JOIN FETCH?

of using JOIN FETCH to avoid excessive round trips to the database: SELECT c FROM Country c JOIN FETCH c ... = em.createQuery(         "select p from Person p join fetch p ... then this is normal for JOIN FETCH and you can remove duplication by using SELECT DISTINCT . support Support

Multiple joins did not return expected result

its id like: SELECT event FROM Calendar c1, SharedCalendar c2 INNER JOIN c1.events AS event INNER JOIN ... , SharedCalendar c2 INNER JOIN c1.events AS event1 INNER JOIN c2.original.events AS event2 WHERE c1.id=?1

Join query problem with new statetment

when using query with join . The query code is: TypedQuery inspirationQuery = em.createQuery(    ... Inspiration insp join insp.products p where (p.supplier = ?1)",      ... ) from Inspiration insp join insp.products p where (p.supplier = ?1)", InspirationsPerSupplierResult

LEFT (OUTER) JOIN problem when mappedBy is defined

this query: "SELECT i FROM Invoice i LEFT OUTER JOIN i.itemList items" But this query never returns ... , LEFT JOIN works correctly. Is this normal behaviour? Thank you Michael   Sample application public ... (); Query query = em.createQuery( "SELECT i FROM Invoice i LEFT OUTER JOIN i.itemList items"); List

Issue with Casting / Joins

EmbeddedA); ... // Try to query using join From from = criteria.from(MyEntity.class); MapJoin join = from.joinMap("embeddeds"); Path pathToEmbeddedAName = join .value().get("name")

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I ... with all A classes skipping lazy loading: select b from B b join fetch b.aClasses After closing entity manager, B ... thought, that after join fetch and CascadeType.DETACH list of A classes should be accessible from B

"Problem" with cross join

. JOINED ) ... @ManyToOne private CI ci; subclass CIstring private String text; I am not sure ... fields in JOIN queries). Please try the new build (2.0.4_01) that should fix the bug. The attached

joining of tables

Hi In objectdb site i found : Note: This ORM/SQL annotation is silently ignored by ObjectDB so i want   join tow table and generate a third table. Ex:  table 1: employee    table 2: address  and the generate table will be table 3: emp_add employee: e_id, e_name address: add

Join performance in Objectdb

, executing the JOIN may require iteration over 160,000 x 160,000 x 160,000 tuples. The following test

AnnotationRef jakarta.persistence.JoinColumn

a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed and the default values apply. Example: {@snippet ... of the foreign key column. The table in which this column is found depends on the context. If the join

Problem using "and" for joined entities and indexed fields

Parent p join p.children c where c.age = 42", Parent.class).getResultList().size());         System.out.println(em.createQuery("select from Parent p join p ... ;   System.out.println(em.createQuery("select from Parent p join p.children c where c

Issue with full cross joins

hi, There seems to be an issue with full cross joins & maps. This query: SELECT  $1 FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied  $1 LEFT JOIN $1.qubletFRAGMENTMAP $4,   ... Alexander Adam It seems that simple iteration on map values in JOIN has not been implemented and a map

Problem with JOIN and inheritance

.customer.VendorCustomer $1 JOIN $1.qubletFRAGMENTMAP $2, com.quasado.foundation.warehouse.contract ... do select from "VendorCustomer" yet through using the join , he is also selecting all "Customer ... should not even join the $1.qubletFRAGMENTMAP of any other class but "VendorCustomer"!? thanks Alex quasado

Mapped by fields are not initialized by JOIN FETCH in queries

As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support   Build 2.4.1_06 fixes this issue (fields are now initialized

AnnotationRef jakarta.persistence.MapKeyJoinColumn

a mapping to an entity that is a map key. The map key join column is in the collection table, join ... annotation is specified, a single join column is assumed and the default values apply. Example 1 ... for the map key. The table in which it is found depends upon the context. If the join is for a map key

InterfaceRef jakarta.persistence.EntityManager

when the entity manager is joined to an active transaction, the persistence context remains managed ... NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction ... manager which has not been joined to the current transaction and a lock mode other than {@code

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

: {@literal Expression } Since: JPA 2.0 CollectionJoin treat ( CollectionJoin   join , Class  type) Downcast CollectionJoin object to the specified type. Parameters: join - CollectionJoin ... Join treat ( Join   join , Class  type) Downcast Join object to the specified type

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

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

EnumRef jakarta.persistence.criteria.JoinType

.JoinType Defines the three varieties of join . Support for RIGHT outer joins is not required. Applications which make use of right joins might not be portable between providers or between SQL databases. Since: JPA 2.0 Enum Constants INNER Inner join . Since: JPA 2.0 LEFT Left outer join . Since: JPA 2.0

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

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