ObjectDB Database Search

1-44 of 44 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

Numbers in JPQL and Criteria Queries

LOCATE and LENGTH . As composite arithmetic expressions that use operators and functions to combine

jakarta.persistence.criteria.CriteriaBuilder

substring of a string, Parameters: x - string expression len - length of the substring to return Returns ... - string expression len - length of the substring to return Returns: expression for the leftmost substring. Since: Jakarta Persistence (JPA) 1.0 Expression length ( Expression x ) Create expression

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.Tuple

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

jakarta.persistence.criteria.CriteriaBuilder.substring(Expression,Expression,Expression)

) Create an expression for substring extraction. Extracts a substring of given length starting ... expression len - length expression Returns: expression corresponding to substring extraction. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.substring(Expression,int,int)

an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1. Parameters: x - string expression from - start position len - length Returns

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

jakarta.persistence.criteria.CriteriaBuilder.right(Expression,Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression right (    Expression x ,    Expression len ) Create an expression for the rightmost substring of a string, Parameters: x - string expression len - length of the substring to return

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

Does aggregate function "greatest" work on entity objects?

() + " result = " + result); return result; } @Column( length =1024) private String text; @Embedded private

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

Acceptable Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content- Length : 1067 Date

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

static final long serialVersionUID = 1L; @Column( length =1024) private String text; @Embedded private

how to persist an object twice into two diff. collections of two diff. classes

selectedSquads = new ArrayList (); if (tableSquads.getSelectedRows(). length 0) { int[] rows

Query in JPA2 with LEFT JOIN on INNER JOIN

[] selections = new Selection[profiles. length +1]; Selection actionDescriptionSelection

Object explorer cannot open odb file. ObjectDB many-to-many relationship

.getAssignements()); int countProjectsAssignedToU1 = u1.getAssignements().keySet().toArray(). length

More Efficient Primary Keys

the length with the Column annotation? d) Or would you recommend something else? Finally

Custom Classloader: Issues with the Enhancer Agent

(); return defineClass(name, bytes, 0, bytes. length ); }else{ throw new ClassNotFoundException

Failed to resize file - file system limitation error

::setLength . The setLength method produces the following error messages if the requested length

Unexpected exception (Error 990) on find

all values at a length of 256, there seams to come no exception. It seams that there had to be some ... ? Is it String? What is the length of these strings? You mentioned long strings as map values, but in ... on Monday. Probably its the combination of Key- and Value- Length . Stefan Stefan Mair Hi, the ObjectDB

ObjectDB can't be activated

; System.out.printf("%d %d %s\n", s1. length (), s2. length (), s2);        ... ; System.out.printf(indent(indent) + "hardwareAddress = %d %d %s\n", s1. length (), s2. length (), s2);  

NullPointerException using with "refresh" method

Buster) and had some trouble with zero length files using atomic moves, and after a power loss ... -and-the-zero- length -file-problem/ - https://en.wikipedia.org/wiki/Ext4#Delayed_allocation

Page cache File handling produced an java.io.IOException: Negative seek offset

we get following exception when we execute a find() in a scenario, we can not readjust with an example.   Before the exception throws we get two outputs on std error: pos = -8192 length = 8192 ... .java) pos = -8192 length = 8192 [ObjectDB 2.6.7] javax.persistence.PersistenceException Failed

Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException

.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 0 java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 0 at com.objectdb.o.UTY.L(UTY.java:1440) at com.objectdb.o.ENH.d(ENH

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

][project=TEST: project 1][id=46][name=deep float quantity ( length )], [class=IntegerQuantity ... ( length )]) INFO: ConfigBean []: testQuery: element.ownedElement([class=IntegerQuantity][project=TEST

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

InternalException when using MEMBER OF on a large list in a query

to a 22 char instead of actual 36 char)   - Would it bring someting to specify the length

missing merger

.ArrayIndexOutOfBoundsException: Index -4 out of bounds for length 2048     at com.objectdb.o