Home » Search

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
13

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
12

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 used
JDO Doc
10

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
10

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
Manual
10

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
Result
9

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
Manual
9

JPA Metamodel API

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

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using ... strings from the Java code. It also enforces the use of query parameters rather than embedding literals dynamically into the query string and results in more efficient queries. @NamedQuery