About empty

1-10 of 200Refresh
Manual
86

Collections in JPQL and Criteria Queries

. as path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages IS EMPTY is TRUE if the collection is empty and FALSE otherwise. c.languages IS NOT EMPTY is FALSE
Forum
23

Memory consumption of empty Strings

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. But after reloading the entities from objectdb, every empty String has become a new (unique) String object
Forum
23

Empty query results after JAR creation

.jar", I get either empty results or on some cases a "NoResultException" which appears to report ... file that can be distributed? Thanks for any help.   Empty results or NoResultException may be caused by accessing an empty database. In your code you use a relative path to access the database
Forum
22

LEFT JOIN FETCH over empty embedded collection returns no results

to my inquiry a few months ago. However, I have run into one problem: if an embedded collection is empty ... of the first collection, the result of the overall query is an empty set. To use the example from ... where bList is empty, the following works (returns my instance of C): SELECT c FROM C c LEFT JOIN
Forum
22

Possible issue for JPQL IS EMPTY expression

Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type  for operator IS EMPTY (error 756) Thanks. Note: It doesn' t work with SIZE(): SELECT e FROM MyEntity e WHERE SIZE
Forum
22

@ElementCollection Set<Integer> is emptied sometimes

is unclear. What do you mean by clearing some fields? Please clarify. The field is emptied, but not null. So, my @ElementCollection Set fields become empty sometimes during development ... , until 1 day ago, when some fields got empty again (but not null). (basically...an empty HashSet
Issue
22

Internal exception: NPE on criteria query with IN clause and empty collection

already narrowed the cause to the fact that I use JPA criteria query API, and I pass an empty collection to IN ... (rootService); cq.where(rootService.get("key").in(templateKeys)); //templateKeys is empty by mistake ... here I guess (at least other JPA providers also throw on empty IN parameter), the exception message
Forum
22

InternalError on query of empty database

it. I'm now getting an empty set returned on empty database. Thanks!!!! pedwards
Forum
21

Empty temporary dat files in the temp folder

of the first one) empty. Or rather pre filled with null. We observed that the directory is cleaned
Forum
20

Handling a case of searching an empty database

Handling a case of searching an empty database