About string

1-10 of 200Refresh
Manual
205

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
55

DiscriminatorType.STRING

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

EnumType.STRING

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

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
19

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
19

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
18

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
Forum
18

ORDER BY problem, when String starts with language specific character

ObjectDB uses the ordinal Java String lexicographical order, which is based on the order of the characters ... , and just keeping strings in name using the decomposed form rather than the composed form will solve ... main(String[] args)     {         EntityManagerFactory emf =             Persistence
Forum
18

"Unsupported auto value type java.lang.String" when persisting new instance

.String for field hr.hzmo.network.model.Device.ID (error 323) at com.objectdb.jpa.EMImpl.persist ... (NetworkInformationDatabase.java:71) Caused by: com.objectdb.o.UserException: Unsupported auto value type java.lang.String ... . My annotations for primary key: @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private String ID
Forum
18

Error reading UTF string

Good day, I have many errors like this, when try to use java.util.UUID as string in querys. 16:18 ... .objectdb.o.InternalException: Error reading UTF string at org.jboss.as.ejb3.tx.CMTTxInterceptor ... UTF string at granat.dp.ejb.PersonBean.find(PersonBean.java:287) [DP-ejb.jar:] at sun.reflect