ObjectDB Database Search

101-150 of 200 results

jakarta.persistence.criteria.CriteriaBuilder.array(List)

array (    List selections ) Create an array-valued selection item. Parameters: selections - list of selection items Returns: array-valued compound selection . Throws: IllegalArgumentException - if an argument is a tuple- or array-valued selection item. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.ConstructorResult

to map the SELECT clause of a SQL query to a constructor. Applies a constructor for the target class ... is retrieved for the constructed object. Example: Query q = em.createNativeQuery( " SELECT c.id, c.name ... ColumnResult[] columns (Required) The mapping of columns in the SELECT list to the arguments

jakarta.persistence.FieldResult

the SELECT list of a SQL query to the properties or fields of an entity class. Example: Query q = em.createNativeQuery( " SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item ... column Name of the column in the SELECT clause - i.e., column aliases, if applicable. Since: Jakarta

jakarta.persistence.criteria.AbstractQuery.getSelection()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Selection getSelection() Return the selection of the query, or null if no selection has been set. Returns: selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ForeignKey

. If this annotation is not specified, a default foreign key strategy is selected by the persistence ... .PROVIDER_DEFAULT selects the default behavior of the provider, which may or may not result in

jakarta.persistence.JoinTable

, a default foreign key strategy is selected by the persistence provider. Default: @ForeignKey ... strategy is selected by the persistence provider. Default: @ForeignKey(ConstraintMode.PROVIDER_DEFAULT

How to convert a boolean to an int in the query?

of the parameters I have calculated directly in the query, depending on the query for example SELECT ... version 2.5.2_04. but in the Explorer queries SELECT approveEmail FROM Person ORDER BY (int)approveEmail DESC and SELECT approveEmail FROM Person ORDER BY approveEmail DESC return different results

composite index not used in query

objectsInCharge = new ArrayList (); on running a query like select count(a) from Action a JOIN ... results --------------------- Evaluate aggregate expressions: count(a). Step 5: Apply selection ----------------------- Apply selection and prepare final results. Is there something wrong in the definition

query on calendar class

(" SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr.class); query.setParameter(1,Calendar.FRIDAY ... query=em.createQuery(" SELECT c FROM Cdr c where c.start {t '23:00:00'}", Cdr.class); But it throws: Exception in thread "AWT-EventQueue-0" [ObjectDB 2.5.6_02] SELECT c FROM Cdr c where c.answered

jakarta.persistence.criteria.Path.get(String)

p = q.from(Person.class); q. select (p) .where(cb.isMember("joe", p.get("nicknames ... .get("nicknames"); q. select (p) .where(cb.isMember("joe", nicknames)); Parameters: attributeName - name

jakarta.persistence.EntityManager.createNativeQuery(String)

if there is only one column in the select list.) Column values are returned in the order of their occurrence in the select list and default JDBC type mappings are applied. Parameters: sqlString

No clue how to query with collection

;   Collection getAddresses(); } Now what I want to do is to select all available ... with a concatenated value of street + streetNo (if not null). So I want something like this: SELECT c, a FROM Customer ... only.. thanks! Alex quasado Alexander Adam hi, okay I've decided that selecting the first item of a collection

Strange behaviour with ORDER BY and IN

("Locations without selection criterion in descending order (by id): ");         em.createQuery(" select l from Location l order by l.id desc", Location.class)    ... ;   System.out.println("\nLocations with IN selection criterion ON ID-FIELD in descending

jakarta.persistence.GenerationType

. For a primary key of type Long , Integer , long , or int , the provider selects between TABLE , SEQUENCE

jakarta.persistence.JoinColumns

is selected by the persistence provider. Default: @ForeignKey(PROVIDER_DEFAULT) Since: Jakarta

jakarta.persistence.JoinColumn

generation is in effect. If this element is not specified, a default foreign key strategy is selected by

jakarta.persistence.MapKeyJoinColumn

is not specified, a default foreign key strategy is selected by the persistence provider. Default

jakarta.persistence.MapKeyJoinColumns

in either location, a default foreign key strategy is selected by the persistence provider. Default

Missing Data on Retrieval (0, null values)

tableName: tables) {   List resultList = em.createQuery(" SELECT q  FROM "+tableName+" "+n ... .createQuery(" SELECT p  FROM Person p").getResultList();     - resultlist1   OK List resultList2 = em.createQuery(" SELECT d  FROM Document d" ).getResultList(); - resultlist2

Searching lists within objects

;               q. select (cdi ... ; String query = " SELECT DISTINCT t FROM com.contextspace.datamodel.party.CDI t JOIN t.attributeList attr ... ;    query = " SELECT DISTINCT t FROM com.contextspace.datamodel.party.CDI t JOIN t

Slow searching with two indexes

number of the most recent objects, like this: select from Thing where reference == :objectReference order ... the query execution plan from the log? The following query: select from Thing where reference ... have investigated further, and I have the query logs from using the Database Explorer: select from NmeaBatch

Query in JPA2 with LEFT JOIN on INNER JOIN

How write a query in JPA2 with LEFT JOIN on INNER JOIN? select a.description, a.id, p1.description ... actionDescriptionCriteriaQuery = cb.createQuery(String.class);   Root root = cq.from(Action.class); Selection [] selections = new Selection [profiles.length+1]; Selection actionDescriptionSelection

Explorer in 2.3

to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy ... , but I cannot get them to work.) b. XML - Select some objects and serialize them to XML (using ids for circular references) c. Binary - Select some objects, serialize the data to a binary file

@ElementCollection query returning extra result per element in collection

db):   testFindByLikeLowerWildcardWithoutBranchWithOr: SELECT $1 FROM Company $1 WHERE ((LOWER ... ; testFindByLikeLowerWildcardWithBranchWithOr: SELECT $1 FROM Company $1 WHERE ((LOWER($1.name) LIKE :p1) AND ((($1 ... an explicit DISTINCT as a workaround until a fix is released: query. select (companyRoot).distinct(true

JPA query of a Set of terms

Hi, Is it possible to write a JPA query to select objects that contain a collection of elements ... that are already persisted. em.createQuery(     " SELECT DISTINCT si.page FROM SearchIndex si ... that are already persisted. TypedQuery query = em.createQuery( " SELECT DISTINCT si.page FROM SearchIndex si

LEFT JOIN FETCH over empty embedded collection returns no results

works (returns my instance of C): SELECT c FROM C c LEFT JOIN FETCH c.bList WHERE id=:id; But if I include the full nested fetch, it fails, returning an empty result list: SELECT c FROM C c LEFT JOIN ... post is invalid: SELECT c FROM C c LEFT JOIN FETCH c.bList LEFT JOIN FETCH c.bList.val WHERE id=:id

Join performance in Objectdb

SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.idImage=i.id AND e.idPage=p.id; So simple ... variant of your query would be: SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.image=i ... select count(e.id) from Page e 1 java.lang.Long: 161143 Time : 23.889999 JPQL select count(e.sUrl

New to Product & Having An Issue

) @NamedQueries({ @NamedQuery(name="Department.findAll", query=" SELECT d FROM Department AS d"), @NamedQuery(name="Department.byName", query=" SELECT d from Department AS d WHERE d.name = :name"), @NamedQuery(name="Department.findByCmpPK", query=" SELECT d FROM test.Domain.Department AS d " + "WHERE d

IN expression in a Criteria Query

: SELECT e FROM Employee e WHERE e.present = false AND NOT EXISTS ( SELECT c FROM Computer c WHERE c ... (Unknown Source) I also found another issue with this query: SELECT a FROM Account a GROUP BY a.code HAVING ... ;       q. select (root);        

EntityManager.refresh takes a long time

; logger.log(Level.INFO, "begin select for person " + new Date().toString());     ... ;       em.createQuery(" SELECT m FROM Person m", Person.class);   ... ;         logger.log(Level.INFO, "end select for person

java.lang.NullPointerException when using ORDER BY

: SELECT r FROM RecordingMetaData AS r WHERE ((r.mapToCli != '192.168.10.200:9085' AND r.callDirection ... part. That is this query works: SELECT r FROM RecordingMetaData AS r WHERE ((r.mapToCli != '192.168.10 ... , but the problem persists. Finally, we tried queries like the following and all work: SELECT r FROM

jakarta.persistence.TypedQuery.setLockMode(LockModeType)

- if the query is found not to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Subquery.getSelection()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Expression getSelection() Return the selection expression. Returns: the item to be returned in the subquery result. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery Stream getResultStream() Execute a SELECT query and return the query result as a typed Stream . By default, this method delegates to getResultList().stream() , however, persistence provider may choose to override this method

jakarta.persistence.TypedQuery.getSingleResult()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery X getSingleResult() Execute a SELECT query that returns a single result. Returns: the result, of type X . Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement

jakarta.persistence.TypedQuery.getSingleResultOrNull()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery X getSingleResultOrNull() Execute a SELECT query that returns a single untyped result. Returns: the result, of type X , or null if there is no result. Throws: IllegalStateException - if called for a Jakarta Persistence query

jakarta.persistence.TypedQuery.getResultList()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery List getResultList() Execute a SELECT query and return the query results as a typed List . Returns: a list of the results, each of type X , or an empty list if there are no results. Throws: IllegalStateException - if called

jakarta.persistence.EntityResult.discriminatorColumn

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityResult String discriminatorColumn Specifies the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityResult.fields

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityResult FieldResult[] fields Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class. Default: {} Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FieldResult.column

Jakarta Persistence (JPA) Method in jakarta.persistence.FieldResult String column Name of the column in the SELECT clause - i.e., column aliases, if applicable. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ForeignKey.value

that no constraint should be generated. ConstraintMode.PROVIDER_DEFAULT selects the default behavior

jakarta.persistence.EntityManager.createQuery(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager TypedQuery createQuery (    String qlString ,    Class resultClass ) Create an instance of TypedQuery for executing a Jakarta Persistence query language statement. The select list of the query must contain

jakarta.persistence.EntityManager.createNamedQuery(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager TypedQuery createNamedQuery (    String name ,    Class resultClass ) Create an instance of TypedQuery for executing a Jakarta Persistence query language named query. The select list of the query must contain

combined index not used

we have a query like this: SELECT a.endDate,a.objectsInCharge.nodePath,a.objectsInCharge ... selection ----------------------- Apply selection and prepare final results.     hgzwicker Hans ... the composite index but eventually selected another query plan. We will try to understand that selection

queries under 2.7.6_4 significantly slower than under 2.7.6

. What we can report is: using a reference query (you have our test db) select distinct o from ObjectNode o join o ... selection ----------------------- Apply selection and prepare final results. '(OP)':notNull])) v$1:filter ... from the groups of step 5. [Step 7] Apply selection and prepare final results. hgzwicker Hans-Georg

Slow query due to scanning multiple indexes

make a query for only one field, it takes 0-3 milliseconds: SELECT p FROM RackPlanogram p WHERE p ... ) instances that satisfy: (p.rackOID='826268'). [Step 2] Apply selection and prepare final results. '826268 ... of both indexes and merges the results, which is orders of magnitude slower (30-50 ms): SELECT p FROM

Query on primary key is slow when using 'IN'

); } } } We have about 200M instances of this entity. The following query finishes instantly: SELECT FROM ... of step 4 by: d. [Step 6] Remove duplicates from the groups of step 5. [Step 7] Apply selection ... equalities to IN, the query suddenly takes 2.5 minutes: SELECT FROM ProductVariantStoreData d WHERE d

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: SELECT COUNT(t) FROM Position t ... the query below it will crash with the exception in crash.txt. select p from Position p where p.unit ... .unit IS NULL It doesn't delete anything. If you try it with SELECT nothing get's returned

Inverse OneToMany Mapping and EmbeddedId

( " select a from A a " , A . class ) . getResultList ( ) ) ;          out . println ( em . createQuery ( " select b from B b " , B . class ) . getResultList ( ) ) ;          List abs = em . createQuery ( " select ab from AB ab " , AB

each 1-2 days objects on some objectdb level lock/block each other

select queries without any object manipulation in these threads hgzwicker Hans-Georg Zwicker ... :   select o from ObjectNode o join o.properties p1 join o.linkedObjects c1 where o ... .doubleValue = 1) and (p1.name = 'plannedState' and p1.doubleValue 0)   select distinct o from