ObjectDB Database Search

51-100 of 200 results

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

LEFT JOIN FETCH over empty embedded collection returns no results

may be with the expression  c.bList.val . Path expressions are considered as INNER JOIN by JPA ... First of all, thank you for promptly implementing JOIN FETCH over nested paths in response ... , but I attempt to LEFT JOIN FETCH all the members of a collection within a (non-existent) member

Query with FETCH JOIN returns multiple results instead of one.

has the same join semantics as the corresponding inner or outer join , except that the related objects ... 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

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

JPQL JOIN FETCH Error

Hello I get an error when executing the following JPQL query: select doi from Doi doi left join fetch doi.metadata metadata left join fetch metadata.titles titles left join fetch metadata.creators creators left join fetch metadata.descriptions descriptions left join fetch metadata.publishers

Left join fetch behaviour doesn't retrieve children?

Hello, I'm a little bit confused about a left join fetch behaviour. In this test case, i try to fetch my 3 children using a left join fetch. But my collection is null after closing the em ... ();         // Try to retrieve parent and children using left join fetch

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

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

jakarta.persistence.criteria.From.joinList(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From ListJoin joinList (    String attributeName ) Create an inner join to the specified List -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join

jakarta.persistence.criteria.From.joinMap(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.From MapJoin joinMap (    String attributeName ) Create an inner join to the specified Map -valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join . Throws

jakarta.persistence.criteria.Subquery

of the containing query Returns: subquery root. Since: Jakarta Persistence (JPA) 1.0 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 Returns: subquery join . Since: Jakarta

jakarta.persistence.JoinColumn

: Annotation Target: Method, Field Specifies a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed ... Customer class @OneToMany @JoinColumn(name = "CUST_ID") // join column is in the table for Order

jakarta.persistence.MapKeyJoinColumn

key join column is in the collection table, join table, or table of the target entity that is used to represent the map. If no MapKeyJoinColumn annotation is specified, a single join column is assumed ... upon the context. If the join is for a map key for an element collection, the foreign key column is in

jakarta.persistence.EntityManager

manager is joined to an active transaction, the persistence context remains managed ... if invoked on an entity manager which has not been joined to the current transaction and a lock mode ... if invoked on an entity manager which has not been joined to the current transaction and a lock mode

jakarta.persistence.criteria.CriteriaBuilder

Persistence (JPA) 1.0 Join treat ( Join join , Class type ) Downcast Join object to the specified type. Parameters: join - Join object type - type to be downcast to Returns: Join object of the specified type. Since: Jakarta Persistence (JPA) 2.1 CollectionJoin treat ( CollectionJoin join , Class type

SELECT clause (JPQL / Criteria API)

in the results directly, but their content can be added to the SELECT clause by using a bound JOIN

JPA Query Structure (JPQL / Criteria)

, multiselect , array , tuple , construct ). Criteria FROM  ( from , join , fetch ). Criteria WHERE  

JPA Queries

elements (representing range variables, join and fetch): Other criteria query expressions (for all the query clauses):

DELETE Queries in JPA/JPQL

to the structure of SELECT queries. DELETE queries cannot include multiple variables and JOIN

What are the main benefits of using ObjectDB?

that ability and require multiple tables, multiple records and join operations in order to support

WHERE clause (JPQL / Criteria API)

: SELECT c, l FROM Country c JOIN c.languages l WHERE c.population :p AND l in :languages The FROM clause

UPDATE SET Queries in JPA/JPQL

variable (with or without an explicit variable name) for iteration. Multiple variables and JOIN are not

Online Backup

;backupThread. join (); // Wait until the backup is completed.     

JPA Criteria API Queries

, multiselect , array , tuple , construct ). FROM clause ( from , join , fetch ). WHERE clause

jakarta.persistence.PrimaryKeyJoinColumn

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 to a primary table; and it may be used in a OneToOne mapping in

jakarta.persistence.JoinTable

: Annotation Target: Method, Field Specifies 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 ... , and one-to-one associations (both bidirectional and unidirectional). When a join table is used in mapping

jakarta.persistence.AssociationOverride

mapping is a foreign key mapping, the joinColumns 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 the mapping of a relationship defined by a mapped superclass

jakarta.persistence.TypedQuery

the persistence context has not been joined to the transaction. QueryTimeoutException - if the statement ... and there is no transaction or the persistence context has not been joined to the transaction ... other than NONE has been set and there is no transaction or the persistence context has not been joined

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. QueryTimeoutException - if the query execution exceeds ... been joined to the transaction. QueryTimeoutException - if the query execution exceeds the query timeout

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 ... . If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne / OneToMany

jakarta.persistence.Embeddable

must: be a non- abstract , non- final top-level class or static inner class, or a Java record type

jakarta.persistence.PessimisticLockScope

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

jakarta.persistence.MapKeyColumn

. If the map key is for a ManyToMany entity 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 ... is for a OneToMany or ManyToMany entity relationship using a join table, the name of the join table

jakarta.persistence.CollectionTable

{ @ElementCollection @CollectionTable(name = "HOMES") // use default join column name @AttributeOverrides ... . The default only applies if a single join column is used. The default is the same as for JoinColumn ... primary key column.) However, if there is more than one join column, a JoinColumn annotation

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

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 table

jakarta.persistence.JoinColumn.table

the primary table of the applicable entity. Default: If the join is for a OneToOne or ManyToOne ... . 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

jakarta.persistence.ManyToMany

, mapping to an intermediate table called 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 ... the relationship field or property of the owning side. The join table for the relationship, if not defaulted

jakarta.persistence.criteria.CriteriaQuery

from a get or join operation and the query result type is specified. For example: CriteriaQuery q = cb ... ").get("state")); CriteriaQuery q2 = cb.createQuery(Product.class); q2.select(q2.from(Order.class) . join ("items") . join ("product")); Parameters: selection - selection specifying the item

jakarta.persistence.SecondaryTable

properties of the entity are mapped to the primary table. If no primary key join columns are specified, the join columns are assumed to reference the primary key columns of the primary table ... PrimaryKeyJoinColumn[] pkJoinColumns (Optional) The columns that are used to join with the primary table. Defaults

jakarta.persistence.criteria.From.joinMap(String,JoinType)

;  String 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 Returns: the resulting join . Throws: IllegalArgumentException

jakarta.persistence.criteria.FetchParent.fetch(String,JoinType)

;  String 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 Returns: the resulting fetch join . Throws: IllegalArgumentException

jakarta.persistence.criteria.FetchParent.fetch(SingularAttribute,JoinType)

;  SingularAttribute attribute ,    JoinType jt ) Create a fetch join to the specified single-valued attribute using the given join type. Parameters: jt - join type attribute - target of the join Returns: the resulting fetch join . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.FetchParent.fetch(PluralAttribute,JoinType)

;  PluralAttribute attribute ,    JoinType jt ) Create a fetch join to the specified collection-valued attribute using the given join type. Parameters: jt - join type attribute - target of the join Returns: the resulting join . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.From.joinCollection(String,JoinType)

joinCollection (    String 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 Returns: the resulting join . Throws

jakarta.persistence.criteria.From.joinSet(String,JoinType)

;  String 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 Returns: the resulting join . Throws: IllegalArgumentException

jakarta.persistence.criteria.From.joinList(String,JoinType)

;  String 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 Returns: the resulting join . Throws: IllegalArgumentException