ObjectDB Database Search

51-100 of 200 results

jakarta.persistence.metamodel.ManagedType

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 Returns: attribute with given name . Throws: IllegalArgumentException - if attribute of the given name is not present in

jakarta.persistence.metamodel.EmbeddableType

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

jakarta.persistence.metamodel.MappedSuperclassType

Persistence (JPA) 2.0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Inherited from ManagedType Parameters: name - the name of the represented attribute Returns: attribute with given name . Throws

Paths and Types in JPQL and Criteria API

can be extended by reusing the dot ( . ) operator. For example, c.capital. name is a nested path expression that navigates from the Capital entity to its name field. A path expression can be extended ... with a matching name . The path expression is valid even if the persistent field is declared as

JPA Connections and Transactions

a persistence unit name as an argument. As an extension, ObjectDB lets you specify a database URL or path ... rather than a persistence unit name . To use ObjectDB embedded directly in your application (embedded mode ... : protocol prefix is optional if the database file name extension is .odb or .objectdb

Database Transaction Replayer

When recording is enabled , ObjectDB maintains a recording directory for each database file. The name of the recording directory is the database file name with the .odr (ObjectDB Recording) suffix. By ... of files: Backup files, with names in the format .odb Recording files, with names in the format .odr

Literals in JPQL and Criteria Queries

syntax for enum values, but you must specify the fully qualified name of the enum type. For example ... literal is the name of the entity class (for example, Country ). This is equivalent to Country.class in Java code. The name of the entity class is not enclosed in quotation marks because type literals

JPA Entity Fields

{ String name ; @ManyToOne Department department; } @Entity public class Department { @OneToMany ... public class Department { @OneToMany ( mappedBy ="department") @OrderBy (" name ") List employees; } In ... Employee e WHERE e.department = :d ORDER BY e. name The specified field ( " name " ) must be a sortable

GROUP BY and HAVING clauses

SUBSTRING(c. name , 1, 1) FROM Country c GROUP BY SUBSTRING(c. name , 1, 1); The FROM clause iterates ... letter of their names . The SELECT clause then receives these groups and returns the first letters as ... : SELECT DISTINCT SUBSTRING(c. name , 1, 1) FROM Country c GROUP BY with aggregate functions JPQL supports

Strings in JPQL and Criteria Queries

: 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 a literal ... : // Create path and parameter expressions: Expression path = country. get (" name "); Expression param = cb

JPA Metamodel API

an EntityManager instance named em , you can get a Metamodel instance as follows: Metamodel ... - including inherited: Attribute strAttr1 = managedType. getAttribute (" name "); // Get a specific attribute - excluding inherited: Attribute strAttr2 = managedType. getDeclaredAttribute (" name

Auto Generated Values

only within that hierarchy. The SEQUENCE Strategy The sequence strategy has two parts: defining a named sequence ... . It takes a name , an initial value (default is 1), and an allocation size (default is 50). A sequence ... the SEQUENCE strategy in the @GeneratedValue annotation to attach the field to a previously defined named

JPA Fetch Graphs Annotations

Named entity graphs provide a static mechanism for defining fetch plans using annotations ... named entity graphs at the class level using the following annotations: Specifies a named entity graph ... and nested relationships: Specifies an individual attribute node within a named entity graph or subgraph

Posting Sample Code

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

JPA Persistence Unit

-unit XML element. The required name attribute ( my-pu in the example) identifies the persistence ... persistable classes. The class elements specify the names of managed persistable classes ... the database URL, user name , and password, as demonstrated above. XML mapping metadata ObjectDB supports

JPA Class Enhancer

. Usage: java com.objectdb.Enhancer [ | | ] ... - name of a class (without .class suffix) in ... classes -pu : persistence unit name -s : include sub directories in search -d : output path for enhanced ... .Manager You can also specify the names of classes that can be located on the classpath by using

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

JPA Value Generation Annotations

a specific generator name and strategy. An enumeration that defines the strategies for primary key ... generator logic at the class level using these annotations: Defines a named primary key generator that uses a database sequence. It allows you to customize the sequence name , initial value

Running JPA Queries

()); } Note: If you only need to print the country names , it is more efficient to use a projection query to retrieve only the names instead of the entire Country instances. Single-result query execution ... . createQuery ( "SELECT c FROM Country c WHERE c. name = 'Canada'"); Country c = (Country)query

Comparison in JPQL and Criteria API

. greaterThan ( name , nameParam); Predicate gt2 = cb. greaterThan ( name , "India"); Predicate gt3 = cb ... (=) Predicate ge1 = cb. greaterThanOrEqualTo ( name , nameParam); Predicate ge2 = cb. greaterThanOrEqualTo ( name

Database Management Settings

when a database is opened and deletes it when the database is closed. The recovery file name is based on the database file name , with a $ character appended. Every transaction commit is written first ... -separated list of file name extensions that can be used for temporary databases, which are typically used in

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

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

Index Definition

; // unique @Index ( name ="i3") int indexedField3; @Unique Integer indexedField4; // unique @Unique ( name ="u2") Date indexedField5; // unique } The @Unique annotation defines a unique index ... . The optional name attribute has no specific function but might appear in the ObjectDB Explorer and in log

Obtaining a JPA Database Connection

"); The createEntityManagerFactory static method expects a persistence unit name as an argument ... to be a database URL rather than a persistence unit name . The $objectdb variable represents the ObjectDB home ... within an active transaction. Given an EntityManager instance named em , you can begin a transaction: em

JPA Query API

because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API, and named queries In ... named queries , by using the @NamedQuery and @NamedQueries annotations. In JPA, it is a best practice to use named queries instead of dynamic queries when possible. Organization of this Section

Step 2: Entity Class and Persistence Unit

) and selecting  New Class . Enter  guest as the package name - use  exactly that case sensitive package name . Enter  Guest as the class name - use  exactly that case sensitive class name . Click  Finish to create the new class. A new class that should represent Guest

Step 2: Entity Class and Persistence Unit

Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new entity class. In ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

  Next ). Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish ... String name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Finish ... @GeneratedValue Long id; private String name ; private Date signingDate; // Constructors: public

Step 4: Add a Controller Class

) and selecting  New Class . The package name should be  guest . Enter  GuestController as the class name - use  exactly that case sensitive class name . Click  Finish to create ... name = request.getParameter(" name "); if ( name != null) guestDao.persist(new Guest( 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 ... .http.HttpServletResponse; @WebServlet( name ="GuestServlet", urlPatterns={"/guest"}) public class

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 to create ... .http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet( name

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 All to enable

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