ObjectDB Database Search

101-150 of 200 results

GROUP BY and HAVING clauses

. name , 1, 1) FROM Country c GROUP BY SUBSTRING(c. name , 1, 1); The FROM clause defines iteration ... the first letter of the country name . The next step is to pass the groups to the SELECT clause ... (which does not use aggregates) is equivalent to the following query: SELECT DISTINCT SUBSTRING(c. name , 1

Strings in JPQL and Criteria Queries

(usually a parameter or literal). For example: c. name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' c. name LIKE '%' is always TRUE (for any c. name value). c. name NOT LIKE '%' is always FALSE (for any c. name value). To match an actual underscore or percent character it has to be preceded by

Auto Generated Values

The sequence strategy consists of two parts - defining a named sequence and using the named sequence ... a sequence and accepts a name , an initial value (the default is 1) and an allocation size (the default ... to the previously defined named sequence: @Entity // Define a sequence - might also be in

JPA Metamodel API

strAttr1 = managedType. getAttribute (" name "); // Get a specific attribute - excluding inherited: Attribute strAttr2 =   managedType. getDeclaredAttribute (" name "); Additional methods are defined ... only one additional method for getting the entity name : String entityName = entityType. getName

Posting Sample Code

{         private String name ;         MyEntity(String name ) {             this. name = name ;         }        

JPA Class Enhancer

. All rights reserved. Usage: java com.objectdb.Enhancer [ | | ] ... - name of a class (without .class ... ; :  path to input user classes -pu :  persistence unit name -s :  include sub directories ... .MyEmbeddable 2 NON persistable types have been enhanced: Main test.Manager You can also specify names

Privacy Policy

information may include, but is not limited to: email address, username, full name , user name , profile picture, profile signature, company name , phone number, billing address, country,  payment ... Service may see Your name , profile, pictures and description of Your activity. Similarly, other users

Running JPA Queries

the country names , a query using projection and retrieving country names directly instead ... = em. createQuery ( "SELECT c FROM Country c WHERE c. name = 'Canada'"); Country c = (Country)query ... . If the database contains multiple Country objects with the name 'Canada' (e.g. due to a bug

Comparison in JPQL and Criteria API

= :min AND x ) Predicate gt1 = cb. greaterThan ( name , nameParam); Predicate gt2 = cb. greaterThan ( name , "India"); Predicate gt3 = cb. gt (area, areaParam); Predicate gt4 = cb. gt (area ... . greaterThanOrEqualTo ( name , nameParam); Predicate ge2 = cb. greaterThanOrEqualTo ( name , "India"); Predicate ge3

JPA Persistence Unit

A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu ... specify names of managed persistable classes (see below). The property elements specify general ... classes. However, it might be useful to register classes that define generators and named queries (by

Database Management Settings

when the database is closed. The name of the recovery file is based on the name of the database file ... a list of file name extensions that can be used for temporary databases (usually in tests). The content

Apache License, Version 2.0, January 2004

link (or bind by name ) to the interfaces of, the Work and Derivative Works thereof. "Contribution ... such Contributions. 6. Trademarks . This License does not grant permission to use the trade names , trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use

Setting and Tuning of JPA Queries

", 6000); For a  named query definition - using the hints  element: @NamedQuery ( name ="Country.findAll", query ="SELECT c FROM Country c",      hints ={@ QueryHint ( name

JPA Annotations for JPQL Queries

The following annotations are used to define static named JPA queries: The JPA Named Queries section of the ObjectDB Manual explains and demonstrates how to use these annotations to define named JPQL queries.

Index Definition

indexedField2; // unique @Index ( name ="i3") int indexedField3; @Unique Integer indexedField4; // unique @Unique ( name ="u2") Date indexedField5; // unique } @Unique represents a unique index ... " is specified (the default is false ). The optional name attribute has no specific role

JPA Query API

and Named Queries Building queries by passing JPQL query strings directly to the createQuery method, as ... also provides a way for building static queries, as named queries , using the @NamedQuery and @NamedQueries annotations. It is considered to be a good practice in JPA to prefer named queries

Database Schema Evolution

name and either the same type or a convertible type, as explained below. A matching field ... matching field is found but its type is different than the type of the new field (with the same name ... their names . When schema upgrade includes also renaming fields, classes or packages, these changes

General Settings and Logging

specifying 0 as the maximum list size . The user attribute specifies if user names should be saved ... ( "" ) logging to file is disabled. Every day a new log file is generated with the name odb .log ... elements can be added to override the default logging level for a specific ObjectDB subsystem. The names

ObjectDB License Agreement [ver. 2.0.4]

written approval. 7. ObjectDB Software may use the Customer name , logo and domain name in press releases

Obtaining a JPA Database Connection

:$objectdb/db/points.odb"); The createEntityManagerFactory static method expects a persistence unit name as ... by ObjectDB to be a database URL rather than a persistence unit name . The $objectdb variable

Eclipse Distribution License - v 1.0

the documentation and/or other materials provided with the distribution. Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from

BIRT/ODA ObjectDB Driver

data source types. Enter data source name (e.g. ObjectDB Points ) and click Next . Specify an ObjectDB ... . Select an ObjectDB data source (e.g. ObjectDB Points ).  Enter a data set name (e.g. Points by X

UPDATE SET Queries in JPA/JPQL

variable (with or without an explicit variable name ) for iteration. Multiple variables and JOIN are not ... variable name - if defined). Multiple field update expressions, separated by commas, are also allowed

Online Backup

mode a subdirectory of the ObjectDB home directory on the server side). A new subdirectory with a name ... directory and the backup database file itself is created in that subdirectory with the name

JPA Criteria API Queries

queries (e.g. as named queries ) may be preferred. For dynamic queries that are built at runtime -  ... method takes a Parameter (or a ParameterExpression ) instance as the first argument instead of a name

InterfaceRef jakarta.persistence.metamodel.EmbeddableType

Methods Attribute getAttribute (String  name ) Return the attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Return: attribute with given name Throws: IllegalArgumentException - if attribute of the given name is not present

InterfaceRef jakarta.persistence.metamodel.ManagedType

Public Methods Attribute getAttribute (String  name ) Return the attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Return: attribute with given name Throws: IllegalArgumentException - if attribute of the given name

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

or mapped superclass type. Since: JPA 2.0 Public Methods Attribute getAttribute (String  name ) Return the attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Return: attribute with given name Throws

Step 4: Add a Servlet Class

  New Other... Web Servlet and clicking  Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish ... a new guest (if any): String name = request.getParameter(" name "); if ( name != null) { em

Step 4: Add a Controller Class

New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name . The Package should be guest. Click Finish to create the new Spring Controller class. Now ... (HttpServletRequest request) { // Handle a new guest (if any): String name = request.getParameter(" name

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request

Step 5: Add a JSP Page

) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name . The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click ... content: JPA Guestbook Web Application Tutorial Name : The JSP generates the guestbook page output

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive class name . The package name should be tutorial . Click Finish to create the new class. Use copy

Step 6: Set the Spring XML

(whose name is derived from the name of the Spring dispatcher servlet in  web.xml ). To generate ...   spring-servlet as the File Name . Click  Finish to create the XML file. Now use 

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as the class name - use exactly that case sensitive class name . Click Next and then Select

Step 1: Create a Java Project

New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully qualified class name is set (you may use copy & paste). Click the Finish button to create

Step 6: Set the Spring XML

configuration is set in another XML file (whose name is derived from the name of the Spring dispatcher ... -servlet as the File Name . The Folder should be src\main\webapp\WEB-INF. Click Next and then Finish

Step 3: Define an EJB Session Bean

Bean and clicking Next . Enter GuestDao as the EJB class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new session bean (EJB

Step 5: Add a JSP Page

... Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish ... Guest Book Web Application Tutorial Name : The JSP generates the guestbook page output, which contains

Step 3: Define a Spring DAO Component

. The package name should be  guest . Enter  GuestDao as the class name - use  exactly that case sensitive class name . Click  Finish to create the new DAO Spring component class. Now

Step 5: Add a JSP Page

... Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish ... Guest Book Web Application Tutorial Name : The JSP generates the guestbook page output, which contains

Step 5: Add a JSP Page

  New Other... Web JSP File and clicking  Next . Enter  guest as the jsp file name - use  exactly that case sensitive class name . Click  Finish to create the new JSP file. Now ... Tutorial Name : The JSP generates the guestbook page output, which contains a simple form for signing

Step 5: Add a JSP Page

(to prevent direct access to the JSP bypassing Spring). Enter  guest as the jsp file name - use  exactly that case sensitive class name . Click  Finish to create the new JSP file. Now ... Tutorial Name : The JSP generates the guestbook page output, which contains a simple form for signing

Step 3: Add a Context Listener Class

Other... Select Web Web Application Listener and click Next . Enter GuestListener as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish

Step 3: Define an EJB Session Bean

node (in the [Package Explorer] window) and selecting New Class . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish

Step 5: Add a JSP Page

New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA Guest Book Web Application Tutorial Name : The JSP

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 3: Define a Spring DAO Component

Java Class... . Enter  GuestDao as the class name - use  exactly that case sensitive class name . The Package should be guest. Click Finish to create the new DAO Spring component class. Now

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 2: Create a Project and a Report

and click Next : Enter a project name and click Finish : Now we can create a first report in the new ... file name (e.g. report.rptdesign ) and click Finish. The next step is creating an ObjectDB data source .