ObjectDB Database Search
1-16 of 16 resultsjakarta.persistence.OrderBy.value
Jakarta Persistence (JPA) Method in jakarta.persistence. OrderBy String value An orderby _list . Specified as follows: orderby _list::= orderby _item [, orderby _item]* orderby _item::= [property_or_field_name] [ASC | DESC] If ASC or DESC is not specified, ASC (ascending order) is assumed
|
|
Problem with @OrderBy
When I use @ OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @Table(name="Defects", schema = "myDB") public ... ; @OneToMany(mappedBy="defect") @ OrderBy ("seqRel, noteSeq
|
|
JPA Entity Fields
, you can set the order of the retrieved owner entities by using the @ OrderBy annotation: @Entity public class Department { @OneToMany ( mappedBy ="department") @ OrderBy ("name") List employees; } In
|
|
JPA Query Structure (JPQL / Criteria)
, max , ...) Criteria ORDER BY ( orderBy , Order , asc , desc )
|
|
jakarta.persistence.criteria.CriteriaQuery
CriteriaQuery orderBy ( Order... o ) Specify the ordering expressions that are used to order the query ... : the modified query. Since: Jakarta Persistence (JPA) 1.0 CriteriaQuery orderBy ( List o ) Specify
|
|
How to convert a boolean to an int in the query?
; q.select(intCaptial); q. orderBy (cb.asc(intCaptial ... .as(Integer.class); q.select(intApproveEmail); q. orderBy (cb.asc(intApproveEmail)); query = em ... intApprovePhoneNumber = boolApprovePhoneNumber.as(Integer.class); q.select(intApproveEmail); q. orderBy (cb.desc
|
|
Activation error on Schema change
Hi, Is @ OrderBy annotation supported ? When I add this annotation to my entity I get an error, saying that I did not activate my ObjectDB (which I did) : Caused by: com.objectdb.o ... ; @ OrderBy , and actually any change to your schema may cause a similar exception. Please verify
|
|
Problem persisting a TreeSet field
an automatic query . You can define the field as List and use the @ OrderBy annotation to refine
|
|
Problem with distinct select, order by and equivalent alias/attribute path
two queries are not legal because the orderby _item is not reflected in the SELECT clause of the query
|
|
Error during cascaded merge
= CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER) @ OrderBy
|
|
@OrderColumn issue
the OrderBy annotation, and if you are using an embedded collection (i.e. a collection which is not
|
|
Strange Error with Criteria API and Sorting
.Join; import javax.persistence.criteria.Root; public class Test_ OrderBy { public static void main ... = root.join("other"); query. orderBy (cb.asc(cb.upper((Expression ) (Expression ) otherJoin
|
|
NPE at com.objectdb.jpa.JpaQuery.getResultList
= query.from(MomentPayload.class); query.select(fromMomentPayload); query. orderBy (cb.desc ... ; query. orderBy (cb.desc(fromMomentPayload.get("dateTime")));  
|
|
Alias not used in ORDER BY
Hi, I am doing something simple like final Root from = criteria.from(T.class) final Path path = from.get("someStringProperty") final Expression upperPath = builder.upper((Expression ) path); upperPath.alias("TEST"); criteria.multiselect(from, path); criteria. orderBy (builder.asc(upperPath)) I
|
|
Null pointer exception being thrown from within ObjectDB.
; orderBy (cb.desc(r.get("objectDbId"))); TypedQuery query = entityManager
|
|
ObjectDB 2.9.0
: / by zero error on query execution. Fixed a bug in applying OrderBy annotation. Fixed opening context menu in the Explorer.
|