ObjectDB Database Search
101-150 of 200 resultsDatabase Connection using JPA an argument a name of a persistence unit . As an extension, ObjectDB enables specifying a database URL (or ... a persistence unit name . To use ObjectDB embedded directly in your application (embedded mode ... name extension is odb or objectdb and required for other file name extensions (e.g.  | |
Paths and Types in JPQL and Criteria API. For example, c.capital. name is a nested path expression that continues from the Capital entity object to its name field. A path expression can be extended further only if its type is also a user defined ... class must contain a persistent field (or property) with a matching name . The path expression | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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. | |
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 | |
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 | |
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 | |
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 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: 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 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 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 ... = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request | |
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 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 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 | |
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 | |
javax.jdo.annotations.Column.name JDO Annotation Attribute in javax.jdo.annotations.Column String name default "" Name of the column. 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.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.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.Index.name JDO Annotation Attribute in javax.jdo.annotations.Index String name default "" Name of the index Since: JDO 2.1 | |
javax.jdo.annotations.PrimaryKey.name JDO Annotation Attribute in javax.jdo.annotations.PrimaryKey String name default "" Name of the primary key constraint Since: JDO 2.1 | |
javax.jdo.annotations.Query.name JDO Annotation Attribute in javax.jdo.annotations.Query String name default null Name of the query (mandatory) 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.Unique.name JDO Annotation Attribute in javax.jdo.annotations.Unique String name default "" Name of the unique constraint. 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 configuration file. ObjectDB is shipped with a default server configuration file named default.xml ... com.objectdb.Server -conf config.xml start If you name your configuration file server.xml , you do not ... element. The required name and password attributes specify a username and a password to be used | |
[ODB1] Chapter 5 - JDO Connections a Properties instance. Each property consists of two strings, a name that identifies the property ... PersistenceManagerFactory instance. When using ObjectDB, the value should always be "com.objectdb.jdo.PMF" (the name ... .option.ConnectionURL=local.odb Assuming the name of the file is jdo.properties , it can be loaded by | |
[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 |