Home » Search

About string

1-10 of 200Refresh
Manual
257

Strings in JPQL and Criteria Queries

String values may appear in JPQL queries in various forms: as string literals - e.g. 'abc', ''. as parameters - when string values are assigned as arguments. as path expressions - in navigation to persistent string fields. as results of predefined JPQL string manipulation functions. LIKE - String
JPA Doc
59

DiscriminatorType.STRING

Enum Constant javax.persistence.DiscriminatorType STRING String as the discriminator type. Since: JPA 1.0
JPA Doc
59

EnumType.STRING

Enum Constant javax.persistence.EnumType STRING Persist enumerated type property or field as a string. Since: JPA 1.0
Manual
54

Literals in JPQL and Criteria Queries

including NULL, boolean literals (TRUE and FALSE), numeric literals (e.g. 100), string literals (e.g ... , 077L), a feature that is not currently supported by all JPA implementations. String Literals JPQL follows the syntax of SQL for string literals in which strings are always enclosed in single quotes (e.g
Manual
53

JPA Persistable Types

, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String ... public class Address { String street; String city; String state; String country; String zip; } Instances of embeddable classes are always embedded in other entity objects
Manual
42

JPA Query Expressions (JPQL / Criteria)

, sqrt). String expressions (like, length, locate, lower, upper, concat, substring, ...). Data
Forum
21

Memory consumption of empty Strings

of objectdb: My program has several entities which contain many String. Often some of these String are empty (""). To avoid unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; In this case every "empty" attribute shares the same String
Forum
20

String Encoding Issue

Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file.  em = emf.createEntityManager(); Query query ... ();) {     System.out.println(itr.next().getName()); // name is a string column } Result: å?‹å–„å
Forum
20

Possible issue with String fields

to commit transaction: String index out of range: 5 (error 613) at com.objectdb.jpa.EMImpl.commit ... .StringIndexOutOfBoundsException: String index out of range: 5 at java.lang.String.charAt(String.java:695) at com.objectdb ... :276) ... 1 more Java Result: 1 When I comment out the fields that are strings all works out fine. I
Forum
20

failure to enforce NOT NULL for java.lang.String

) private String username; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String ... .persistence.*; public class T744 {     public static void main(String [] args