About string

31-40 of 200Refresh
Manual
13

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map<String, String> properties = new HashMap<String, String>();   properties.put("javax.persistence.jdbc.user", "admin ... the need for a persistence unit. Any string that starts with objectdb: or ends with .odb or .objectdb
Manual
12

Database Explorer [2011-09-21]

side enables execution of JPQL and JDOQL queries. To execute a query: Enter a query string. In the [Parameters ... , pressing F2, or even by simply typing the new value. Use the Edit > Edit Multi Line String command to edit a multi line string. Reference fields can be edited by using the following commands: The Edit
Manual
12

Database Explorer

side enables execution of JPQL and JDOQL queries. To execute a query: Enter a query string. In the [Parameters ... , pressing F2, or even by simply typing the new value. Use the Edit > Edit Multi Line String command to edit a multi line string. Reference fields can be edited by using the following commands: The Edit
Manual
11

Comparison in JPQL and Criteria API

),  BigInteger and BigDecimal can be compared by using any comparison operator. String values can be compared by using any comparison operator. Equality operators (=, <>, ==, !=) on strings in queries ... but not to a String instance. [NOT] BETWEEN The BETWEEN operator is a convenient shortcut
JDO Doc
10

javax.jdo.Query

only for this execution, and are not remembered for future execution. Since: JDO 1.0   String JDOQL The string constant used as the first argument to PersistenceManager.newQuery(String,Object) to identify that the created query should obey the JDOQL syntax and semantic rules. The string constant
Manual
9

Paths and Types in JPQL and Criteria API

, string, date). Simple type values are more useful in queries. They have special operators and functions (e.g. for strings and for numbers), they can be compared by all six comparison operators ... (number, boolean, string, date). For a path expression to be valid the user defined persistable class
JDO Doc
9

JDO Predefined ID Classes

, to use a String primary key define a primary key field of type String: @PersistenceCapable public class MyClass { @PrimaryKey String id; } Persistent objects with a String primary key (including instances of MyClass) can be represented uniquely by StringIdentity, as a combination of a class and a string value.
Manual
9

JPA Entity Fields

relationship: @Entity public class Employee { String name; @ManyToOne Department department ... Department { @OneToMany(mappedBy="department") @MapKey(name="name") Map<String,Employee ... () { return _id; } void setId(int id) { _id = id; } private String str; String getStr
Result
8

Posting to ObjectDB Website - Important Instructions

static void main(String[] args) {         EntityManagerFactory emf =             Persistence ... ();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String name) {             this.name = name;         }         @Override         public String toString
Tutorial
8

Step 2: Entity Class and Persistence Unit

Long id; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation