Internal Website Search

1-10 of 200 resultsRefresh

Strings in JPQL and Criteria Queries

String values may appear in JPQL queries in various forms: as string_literals">string literals - e.g. 'abc', ''. as parameters - when string values

Memory consumption of empty Strings

for an enhancement 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

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

strings as primary key and indices. But if the db table of the entity type contains more and more data ... for the case that strings are used for keys and indices? See both examples. btc_es BTC EmbeddedSystems Correction. The case with strings as primary key and indices needs only more ram

String Encoding Issue

a String column containing Chinese character. Retrieve a String column on odb file.  string column } Result: strings - when you retrieve a string from an ObjectDB database you should get exactly the same

Possible issue with String fields

"main" [ObjectDB 2.3.7_15] javax.persistence.RollbackException Failed to commit transaction: String ... .Vhndb4.main(Vhndb4.java:102) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 at java.lang.String.charAt(String.java:695) at com.objectdb.o.SYH.A(SYH.java:329) at com

failure to enforce NOT NULL for java.lang.String

@Persistent(nullValue=NullValue.EXCEPTION) 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 username) { this.username = username; } } public class

ORDER BY problem, when String starts with language specific character

>Michael anaq x ObjectDB uses the ordinal Java String lexicographical order, which is based ... and normalizedName, and just keeping strings in String[] args)     {        

String Contains Query Result - Possible?

a String field, "description", that is effectively a unique sub-string of a system generated description ... it will work even when using wildcards as the input string will be larger than the string being searched ... "> public static Program programByDescription(String desc) { for(Program p : allPrograms()) if(desc

DiscriminatorType.STRING

Enum Constant javax.persistence.DiscriminatorTypeSTRING String as

EnumType.STRING

">javax.persistence.EnumTypeSTRING Persist enumerated type property or field as a string. Since: JPA 1.0