ObjectDB Database Search

1-21 of 21 results

Strings in JPQL and Criteria Queries

( % ) is a wildcard. The second, which follows the escape character, represents a literal % character. LENGTH - counting characters in a string The LENGTH (str) function returns the number of characters in the string argument as an int . For example: LENGTH ('United States') is evaluated to 13 . LENGTH ('China

@Column length is not working.

(unique = true, nullable = false, length = 16)  but when i m trying to insert a string ... so its very difficult to validate the column string length . Please find the below project ... . For other constraints, such as non null and length - consider checking relevant fields in

FROM clause (JPQL / Criteria API)

_ LENGTH , BOTH, BY, CASE, CHAR_ LENGTH , CHARACTER_ LENGTH , CLASS, COALESCE, CONCAT, COUNT, CURRENT_DATE ... , FETCH,FROM, GROUP, HAVING, IN, INDEX, INNER, IS, JOIN, KEY, LEADING, LEFT, LENGTH , LIKE,LOCATE

Index Definition

index must have the same length . Therefore, the following index definition is invalid: @Entity @Index ... is sorted lexicographically by word, not by word length . In summary, if an index contains all the fields in

JPA Query Expressions (JPQL / Criteria)

) String expressions ( like , length , locate , lower , upper , concat , substring , …) Date and time

jakarta.persistence.MapKeyColumn

Persistence (JPA) 1.0 int length (Optional) The column length . Applies only to columns whose type is parameterized by length , for example, varchar or varbinary types. Default: 255 Since: Jakarta

jakarta.persistence.DiscriminatorColumn

) @DiscriminatorColumn(name = "DISC", discriminatorType = STRING, length = 20) public class Customer ... with columnDefinition . Default: "" Since: Jakarta Persistence (JPA) 3.2 int length (Optional) The column length

jakarta.persistence.DiscriminatorValue

= STRING, length = 20) @DiscriminatorValue("CUSTOMER") public class Customer { ... } @Entity

member visiting in jpql

baURI is a byte[]; JP QL select e.baURI. length from URI e where id=82778 JP QL [ObjectDB 2.2.9_04] javax.persistence.PersistenceException Navigation from 'byte[]' through ' length ' is invalid (error ... .java:43) at util.JPQLcmd.main(JPQLcmd.java:28) Why I can not visit the length attribute? TIA

jakarta.persistence.Tuple.get(int,Class)

Returns: value of the tuple element. Throws: IllegalArgumentException - if i exceeds length of result

jakarta.persistence.Tuple.get(int)

: IllegalArgumentException - if i exceeds length of result tuple. Since: Jakarta Persistence (JPA) 1.0

Failed to read DB file while online backup is running

this and how to avoid it ?   Stacktrace 1: pos = 2925893632 length = 2048 Caused by: com.objectdb.o ... .objectdb.jpa.EMImpl.commit(EMImpl.java:299) ... 9 more Stacktrace 2: pos = 3003074560 length = 2048 Caused ... with the previous fix.   Stacktrace 1: pos = 4107765760 length = 2048 Failed to read from file '/path_to_db

Bug: ClassCastException by retrieval

.toCharArray();   int iLen = ca. length ;   Character[] la = new Character[iLen];   for (int ii = 0; ii

Speeding up reporting queries with size() on list

Hi, I'm working on some reporting stuff in our application. One of few different reports should include activity on last modified objects. The query for now looks like this: select date(insp.lastModificationDate), insp.modifiedBy, insp.description. length (), insp.products.size(), insp.picture from

Cascading makeTransient

toString() {   return "StringWrapper : "+ getString(). length (); } public ArrayList getList

Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception

.locks.ReentrantReadWriteLock locks, and varying the length (number of actions) within a transaction

Multithreading Test and Deadlock

threads are slower because of higher memory usage (4 x 10,000 x 100 strings x attribute length = many

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false) private B b; @Id @Column( length = 36) private String stringId; } @MappedSuperclass public

UPDATE statemen crash when i put the WHERE clause.

( "[a-zA-Z- ]+" ) && linie.get( 2 ). length ()= 2 ) { lab_points = (Integer) em.createQuery( "select n.lab

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.getLocalizedMessage(); if (msg == null || msg. length () == 0) { TimePeriod id = chart.getId(); if (findChart(id

ObjectDB 2.6.1

Added an option to disable temporary file deletion . Added support of using entity classes with missing dependent types. Added support of composite indexes with components of different lengths . Fixed a bug in reflection mode in detecting changes after flush ( issue #1602 ). Fixed