ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
237

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
117

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
115

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

Hello, I have a problem with inserting of many entities. We use strings as primary key and indices ... . Can you explain this and do you have an idea 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
114

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: å?‹å–„å
114

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
113

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 ... javax.persistence.*; public class T744 {     public static void main(String [] args
113

ORDER BY problem, when String starts with language specific character

ObjectDB uses the ordinal Java String lexicographical order, which is based on the order ... and normalizedName, and just keeping strings in name using the decomposed form rather than the composed ... class T352 {     public static void main(String[] args)     {         EntityManagerFactory emf
112

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
67

DiscriminatorType.STRING

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

EnumType.STRING

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support