Internal Website Search

101-150 of 200 results

javax.persistence.QueryHint.name

JPA Annotation Attribute in javax.persistence.QueryHint String name default null Name of the hint. Since: JPA 1.0

javax.persistence.DiscriminatorColumn.name

JPA Annotation Attribute in javax.persistence.DiscriminatorColumn String name default "DTYPE" (Optional) The name of column to be used for the discriminator. Since: JPA 1.0

javax.persistence.FieldResult.name

JPA Annotation Attribute in javax.persistence.FieldResult String name default null Name of the persistent field or property of the class. Since: JPA 1.0

javax.persistence.SqlResultSetMapping.name

JPA Annotation Attribute in javax.persistence.SqlResultSetMapping String name default null The name given to the result set mapping, and used to refer to it in the methods of the Query and StoredProcedureQuery APIs. Since: JPA 1.0

Selection.alias(name) - JPA Method

JPA Method in javax.persistence.criteria.Selection Selection alias (   String  name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Parameters: name - alias Return: selection item Since: JPA 2.0

Literals in JPQL and Criteria Queries

the ordinary Java syntax for enum values, but the fully qualified name of the enum type ... to enable selective retrieval by type . In JPQL an entity type literal is written simply as the name ... that the name of the entity class is not enclosed in quotes (because type literals are not string literals). By

JPA Entity Fields

{ String name ; @ManyToOne Department department; } @Entity public class Department { @OneToMany ... annotation: @Entity public class Department { @OneToMany ( mappedBy ="department") @OrderBy (" name ... of the following query: SELECT e FROM Employee e WHERE e.department = :d ORDER BY e. name The specified field

Database Transaction Replayer

directory whose name is the name of the database file with the odr (ObjectDB Recording) suffix. By ... directory contains two types of files: Backup files - with names of the form .odb Recording files - with names of the form .odr A backup file is an ordinary ObjectDB database file that reflects the state

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 suffix ... ; path to input user classes -pu :  persistence unit name -s :  include sub directories in ... .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

c : results) { System.out.println(c.getName()); } Note that to only print the country names , a query using projection and retrieving country names directly instead of retrieving the entire ... ( "SELECT c FROM Country c WHERE c. name = 'Canada'"); Country c = (Country)query. getSingleResult

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, 1000000); // Greater Than or Equal (=) Predicate ge1 = cb. greaterThanOrEqualTo ( name , nameParam

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.

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

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

javax.jdo.annotations.Column.name

JDO Annotation Attribute in javax.jdo.annotations.Column String name default "" Name of the column. Since: JDO 2.1

JDOHelper.getPersistenceManagerFactory(overrides,name) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   Map overrides,    String  name ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.1

JDOHelper.getPersistenceManagerFactory(name,resourceLoader,pmfLoader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ,    ClassLoader resourceLoader,    ClassLoader pmfLoader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.0

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   Map overrides,    String  name ,    ClassLoader resourceLoader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.1

JDOHelper.getPersistenceManagerFactory(name,loader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ,    ClassLoader loader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 1.0

JDOHelper.getPersistenceManagerFactory(name) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.1

javax.jdo.annotations.Index.name

JDO Annotation Attribute in javax.jdo.annotations.Index String name default "" Name of the index Since: JDO 2.1

javax.jdo.annotations.FetchGroup.name

JDO Annotation Attribute in javax.jdo.annotations.FetchGroup String name default "" Name of the fetch group. Since: JDO 2.1

javax.jdo.annotations.ForeignKey.name

JDO Annotation Attribute in javax.jdo.annotations.ForeignKey String name default "" Name of the foreign key. Since: JDO 2.1

javax.jdo.annotations.FetchPlan.name

JDO Annotation Attribute in javax.jdo.annotations.FetchPlan String name default "" Name of the fetch plan. Since: JDO 2.1

javax.jdo.annotations.Sequence.name

JDO Annotation Attribute in javax.jdo.annotations.Sequence String name default null The symbolic name of the datastore sequence. Since: JDO 2.1

javax.jdo.annotations.DiscriminatorStrategy.CLASS_NAME

JDO Enum Constant in javax.jdo.annotations.DiscriminatorStrategy CLASS_ NAME Since: JDO 2.1

[ODB1] Chapter 8 - ObjectDB Server

file. ObjectDB is shipped with a default server configuration file named default.xml ... .Server -conf config.xml start If you name your configuration file server.xml , you do not need ... to connect to the server. The element Every user is represented by a single element. The required name

[ODB1] Chapter 5 - JDO Connections

PersistenceManagerFactory is specified using a Properties instance. Each property consists of two strings, a name ... .objectdb.jdo.PMF" (the name of ObjectDB's class that implements the PersistenceManagerFactory interface ... =com.objectdb.jdo.PMF javax.jdo.option.ConnectionURL=local.odb Assuming the name of the file is jdo

[ODB1] Chapter 7 - JDOQL Queries

class contains a field with the name age and a type comparable to int . This section describes ... to the syntax of parameter declarations in Java. The name of a parameter has to be a valid identifier in Java ... when the query is executed. Class Person must have a persistent field with the name birthDate and type Date

[ODB1] Chapter 3 - Persistent Classes

class for this purpose (images can also be stored as external files, storing only the file names or ... : java com.objectdb.Enhancer [ | | ] ... - class name (without .class suffix) found in the CLASSPATH ... , you can specify class names (e.g. test.X ) and packages (e.g. test.pc.* ): java com.objectdb.Enhancer test.X