ObjectDB Database Search
51-100 of 200 resultsInserted 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 | |
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 ... ();) { System.out.println(itr.next().getName()); // name is a string column | |
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.o.SYH ... When I comment out the fields that are strings all works out fine. I tried replacing the jdbc field | |
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" attribute shares the same String | |
failure to enforce NOT NULL for java.lang.String.IDENTITY) private Long id; @Unique @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 | |
ORDER BY problem, when String starts with language specific character anaq x ObjectDB uses the ordinal Java String lexicographical order, which is based on the order ... fields - name and normalizedName , and just keeping strings in name using the decomposed form ... .*; public final class T352 { public static void main( String [] args)   | |
"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 ... .java:71) Caused by: com.objectdb.o.UserException: Unsupported auto value type java.lang. String ... for primary key: @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private String ID; kiki | |
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 ... reading UTF string at granat.dp.ejb.PersonBean.find(PersonBean.java:287) [DP-ejb.jar:] at sun.reflect | |
String Contains Query Result - Possible? Hi, I have a managed database for an Entity, "Program", containing a String field, "description", that is effectively a unique sub- string of a system generated description. Example ... even when using wildcards as the input string will be larger than the string being searched for. Presently | |
substring works with string but not with char with a string parameter select f from Foo f where substring(f.name, 1, 1) = ?1 but when i use a char ... of the left side expression is String and the type on the right side expression (the parameter) is Character . In ObjectDB as in Java char is comparable to int but not to String . Maybe an exception | |
String representation of a query Hi, Is it possible to get a JPQL string having a Query object instance? JpaQuery class doesn't ... with JPQL string and parameters map to find and optimize the most ineffective cases. kborkowski Karol Borkowski Following your request a toString implementation that returns the query string | |
Schema migration - long to String Hi, I need to change field type in our model from long to String . After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors ... documentation? lwalkowski Lukasz Walkowski Changing a field from long to String should not require any | |
order by string with numbers Hi Anyone could help me I need to order a string for example user1, user2, ..., user1000 I found sql solution but I would like to use criteria builder and I don´t if exist CAST and AS UNSIGNED ... .parseInt is supported by ObjectDB in JPQL string queries. You may try using Integer.parseInt as a JPA criteria query function . support Support | |
Error reading UTF string reading UTF string com.objectdb.o.InternalException: Error reading UTF string at com.objectdb.o.BYR | |
like operator (String); objectdb-2.4.7_07, alsothere exists an @Index for String email   | |
String comparison in query where clause I am having trouble getting a simple string comparison to work in an SQL "where" clause. It is my understanding that queries are case sensitive by default and I do not want that, so I am constructing the query as follows... SELECT e FROM Exercise AS e WHERE UPPER(e.name) = ?0 and then I | |
Obtaining a JPA Database Connection) is also accepted. Any string that starts with the prefix objectdb: or ends with .odb or .objectdb is considered | |
WHERE clause (JPQL / Criteria API)) and functions (numeric functions, string functions, collection functions). The WHERE predicate | |
Numbers in JPQL and Criteria Queries functions - when the return value is numeric, e.g. INDEX, SIZE. as string functions - when the return | |
Collections in JPQL and Criteria Queries"); Expression param = cb. parameter ( String .class); // collection IS [NOT] EMPTY Predicate e1 = cb | |
ORDER BY clause (JPQL / Criteria API) whose type is comparable (i.e. numbers, strings and date values) and is derived from the SELECT | |
javax.persistence.criteria.CriteriaBuilder) Create an expression for string concatenation. Parameters: x - string expression y - string ... x, String y) Create an expression for string concatenation. Parameters: x - string expression y - string Return: expression corresponding to concatenation Since: JPA 2.0 Expression | |
Enable intern() for Retrieved Strings Implement a setting, where the developer can specify which Strings should be loaded via the String ... of instantiating every first name with a new String , the user should be able to specify that this field should be loaded via String . intern() (with all its advantages and disadvantages). mlaggner Manuel Laggner | |
Collation and String Order ObjectDB should support selecting collation when a new database is created. The collation will affect the way strings are sorted in queries (with ORDER BY). Currently strings are always ordered by Unicode order, and a workaround that enables controlling the order is to use normalizing, as | |
@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions. When the following annotation is present on an enum type entity field: @Enumerated(EnumType. STRING ) Queries using JPQL IN expressions on this field won't work correctly anymore. This issue ... ;to @Enumerated(EnumType. STRING ) , as your suggestion. It happened because ObjectDB considered | |
Error reading UTF string (Serialized Objects in Explorer)Error reading UTF string (Serialized Objects in Explorer) | |
javax.persistence.EntityManager createEntityGraph ( String graphName) Return a mutable copy of the named EntityGraph ... of an entity graph Return: entity graph Since: JPA 2.1 Query createNamedQuery ( String name) Create ... string is found to be invalid Since: JPA 1.0 TypedQuery createNamedQuery ( String name, Class | |
javax.persistence.metamodel.EmbeddableType Methods Attribute getAttribute ( String name) Return the attribute of the managed type ... Since: JPA 2.0 CollectionAttribute getCollection ( String name) Return the Collection-valued attribute ... Since: JPA 2.0 CollectionAttribute getCollection ( String name, Class elementType) Return | |
javax.persistence.metamodel.IdentifiableType mapped superclass types. Since: JPA 2.0 Public Methods Attribute getAttribute ( String name ... of the managed type Inherited from: ManagedType Since: JPA 2.0 CollectionAttribute getCollection ( String ... the managed type Inherited from: ManagedType Since: JPA 2.0 CollectionAttribute getCollection ( String | |
javax.persistence.metamodel.ManagedType Public Methods Attribute getAttribute ( String name) Return the attribute of the managed type ... ( String name) Return the Collection-valued attribute of the managed type that corresponds ... in the managed type Since: JPA 2.0 CollectionAttribute getCollection ( String name, Class | |
javax.persistence.criteria.From Inherited from: FetchParent Since: JPA 2.0 Fetch fetch ( String attributeName) Create a fetch join ... - if attribute of the given name does not exist Inherited from: FetchParent Since: JPA 2.0 Fetch fetch ( String ... attribute Inherited from: Path Since: JPA 2.0 Path get ( String attributeName) Create a path | |
Step 3: Add a Main Class( String [] args) { // Open a database connection // (create a new database if it doesn't exist | |
Step 3: Add a Main Class.persistence.*; import java.util.*; public class Main { public static void main( String [] args) { // Open | |
Step 4: Add a Servlet Class = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request | |
Step 4: Add a Servlet Class a new guest (if any): String name = request.getParameter("name"); if (name != null) { em | |
Step 4: Add a Servlet Class response) throws ServletException, IOException { // Handle a new guest: String name = request.getParameter | |
Step 4: Add a Servlet Class a new guest: String name = request.getParameter("name"); if (name != null) guestDao.persist(new | |
Step 4: Add a Controller Class(HttpServletRequest request) { // Handle a new guest (if any): String name = request.getParameter("name | |
Step 4: Add a Controller Class") public ModelAndView guestbook(HttpServletRequest request) { // Handle a new guest (if any): String | |
[ODB1] Chapter 5 - JDO Connections a Properties instance. Each property consists of two strings , a name that identifies the property | |
[ODB1] Chapter 1 - About ObjectDB. Moving from one mode to the other can be done simply by changing a single string (the connection | |
javax.jdo.Query Methods void addExtension ( String key, Object value) Add a vendor-specific extension ... void addSubquery (Query sub, String variableDeclaration, String   ... terms of the outer query See Also: addSubquery (Query sub, String variableDeclaration, String | |
javax.jdo.PersistenceManagerFactory, then JDOUserException is thrown. Since: JDO 1.0 String getConnectionDriverName () Get the driver name ... transactions. Return: the data store connection factory. Since: JDO 1.0 String getConnectionFactory2Name ... store connection factory. Since: JDO 1.0 String getConnectionFactoryName () Get the name for the data | |
javax.jdo.annotations.Persistent "field" and "property". Since: JDO 2.1 Public Annotation Attributes String cacheable default "true" Whether this field/property is cacheable in a Level2 cache. Since: JDO 2.2 String column default ... , for example relationships with multiple column foreign keys. Since: JDO 2.1 String customValueStrategy | |
javax.jdo.spi.I18NHelper for a bundle called "Bundle.properties" located in the package of the specified class object and ( String ... methods can be used to format message strings using the text from the bundle, as in throw new ... : the associated resource bundle Since: JDO 1.1 String msg ( String messageKey) Message formatter | |
javax.jdo.spi.JDOImplHelper , String name , and Float salary ) would have the method generated: void jdoCopyKeyFieldsFromObjectId ... that has three key fields ( int id , String name , and Float salary ) would have the method generated ... . Since: JDO 1.0 String [] getFieldNames (Class pcClass) Get the field names for a PersistenceCapable | |
javax.jdo.PersistenceManager See Also: Query Since: JDO 1.0 FetchGroup getFetchGroup (Class cls, String name ... of the given type with the given key. Parameters: cls - The type of object to load key - either the string ... Since: JDO 1.0 Sequence getSequence ( String name) Returns the sequence identified by name | |
javax.jdo.annotations.Element "element". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column ... to any foreign key for the element. Since: JDO 2.1 String dependent default "" Whether the element is dependent on the owner, and will be deleted when the owner is deleted. Since: JDO 2.1 String | |
javax.jdo.annotations.Key Public Annotation Attributes String column default "" Name of the column to store the key in ... . Since: JDO 2.1 String dependent default "" Whether the key is dependent on the owner (and will be deleted when the owner is deleted). Since: JDO 2.1 String embedded default "" Whether this key | |
javax.jdo.annotations.Value.1 Public Annotation Attributes String column default "" Name of the column to store the value in ... for the value. Since: JDO 2.1 String dependent default "" Whether the value is dependent on the owner (and will be deleted when the owner is deleted). Since: JDO 2.1 String embedded default |