ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
39

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
37

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 ... left join fetch         em = emf.createEntityManager();         TypedQuery<MyEntity> query
33

multiple LEFT JOINs do not work as expected

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 ... , since I use LEFT Joins this query should return all organisation under the root organisation
7

joinSet(attributeName)

Method javax.persistence.criteria.From SetJoin<X,Y> joinSet( String attributeName ) Create an inner join to the specified Set-valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0
7

joinList(attributeName)

Method javax.persistence.criteria.From ListJoin<X,Y> 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 Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0
7

joinMap(attributeName)

Method javax.persistence.criteria.From MapJoin<X,K,V> 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: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0
7

joinCollection(attributeName)

Method javax.persistence.criteria.From CollectionJoin<X,Y> joinCollection( String attributeName ) Create an inner join to the specified Collection-valued attribute. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting join Throws
7

Posting Sample Code

. Whenever possible: Use a single Java file with one main class + static inner classes for entity
7

Criteria Query From Elements

(bound by an entity class) are represented by the Root subinterface: Join variables (bound by an attribute of a preceding variable in the FROM clause) are represented by the Join subinterface and its descendant interfaces: See the FROM in Criteria Queries section for more details and examples. Join
0

[ODB1] Chapter 3 - Persistent Classes

class), interface implementations, inner classes, etc. The class members (constructors, methods

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support