ObjectDB Database Search

101-150 of 200 results

select query for a HashMap field of an entity.

select query for a HashMap field of an entity.

Class fields selection to store

Class fields selection to store

JPA Query Expressions (JPQL / Criteria)

JPQL and criteria queries are built on query expressions. Every query consists of clauses , such as SELECT , FROM , WHERE , GROUP BY , HAVING , and ORDER BY . Each clause is composed of JPQL or Criteria API expressions. Atomic expressions The atomic query expressions are: JPQL / Criteria Variables

jakarta.persistence.TypedQuery

: IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria ... to be a Jakarta Persistence query language SELECT query or a CriteriaQuery query. Since: Jakarta Persistence ... getResultList () Execute a SELECT query and return the query results as a typed List . Overrides

jakarta.persistence.Convert

to a basic type , enabling a converter defined autoApply=false , overriding the use of a converter ... in the map, or an entity class which extends a mapped superclass , to enable or override conversion

Dependency from enhanced classes to the objectDB library

.PersistenceException Type com.btc.ep.base.bl.impl.ModelElementImpl is not enhanced (enhance the type or enable ... .ModelElementImpl is not enhanced (enhance the type or enable reflection) at com.objectdb.o.MSG.d(MSG ... Development” and select the entry “Target Platform” 3) In the Target Platform view: Selcet

jakarta.persistence.EntityResult

the SELECT clause of a SQL query to an entity result. If this annotation is used, the SQL statement should select all the columns that are mapped to the entity object. This should include foreign key ... . Example: Query q = em.createNativeQuery( " SELECT o.id, o.quantity, o.item, " + "i.id, i.name, i

jakarta.persistence.ColumnResult

ConstructorResult annotation to map a column of the SELECT list of a SQL query. The name element references the name of a column in the SELECT list — i.e., column alias, if applicable. Scalar result types ... .createNativeQuery( " SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS

jakarta.persistence.EntityManager

for executing a Jakarta Persistence query language named query. The select list of the query ... 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 - a native

jakarta.persistence.Converter

only to attributes of the target type for which conversion is explicitly enabled via the Convert

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

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

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

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

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

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

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting   New Class . The package name should be  guest . Enter  GuestController as

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As Run on Server Finish : Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g. at domains\domain1\eclipseApps

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish

Step 4: Run the Application

You can now run the application by right clicking the Main.java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As Run on Server Finish : Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open

Step 3: Add a Main Class

In this step we will add a main class to the project to store and retrieve Point objects from the database: Right click the tutorial package in the [Package Explorer] window and select New Class . The package name should be tutorial . Enter Main as the class name (case sensitive). Click Finish

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the  GuestServlet node (in the [Projects] window), selecting   Run File , and then clicking  OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File , and then clicking  OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory

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

Unexpected error when loading all entity instance

instances 2. Check for each entity instance if it is references using queries ( select from where field ... ) When executing the query: select _changeSet from ChangeSet _changeSet where _changeSet.owner = ?1 order by ... . However, if recovery is enabled then the database should be repaired automatically when it is opened