ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.criteria.Nulls

Jakarta Persistence (JPA) Enum jakarta.persistence.criteria. Nulls java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.criteria. Nulls Implemented Interfaces: Constable , Comparable , Serializable Specifies the precedence of null values within query result sets. See Also: CriteriaBuilder::asc

jakarta.persistence.criteria.Nulls.Nulls()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.criteria. Nulls Nulls () Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.asc(Expression,Nulls)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Order asc (    Expression expression ,    Nulls nullPrecedence ) Create an ordering by ... nullPrecedence - the precedence of null values Returns: ascending ordering corresponding to the expression. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.CriteriaBuilder.desc(Expression,Nulls)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Order desc (    Expression expression ,    Nulls nullPrecedence ) Create an ordering by ... nullPrecedence - the precedence of null values Returns: descending ordering corresponding to the expression. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.Nulls.NONE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.criteria. Nulls NONE Null precedence not specified. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Nulls.FIRST

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.criteria. Nulls FIRST Null values occur at the beginning of the result set. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Nulls.LAST

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.criteria. Nulls LAST Null values occur at the end of the result set. Since: Jakarta Persistence (JPA) 1.0

Comparison in JPQL and Criteria API

. Besides the different notation, there is also a difference in the way that NULL values are handled by these operators. Comparing NULL values The following table shows how NULL values are handled by each comparison operator. One column presents a comparison of NULL value with a non NULL value

Logical Operators in JPQL and Criteria API

must be one of: TRUE, FALSE , and NULL . The following table shows how the AND operator is evaluated based on its two operands:   TRUE FALSE NULL TRUE TRUE FALSE NULL FALSE FALSE FALSE FALSE NULL NULL FALSE NULL NULL represents unknown. Therefore, if one operand is NULL and the other operand is FALSE

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding %enum field% IS (NOT) NULL or == (!=) NULL in ... () { Query query = entityManager.createQuery("SELECT e FROM TEntity e WHERE e.exampleEnum IS NULL ... values to NULL was fixed in build 2.5.5_03. support Support

Literals in JPQL and Criteria Queries

including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), string literals ... is always used and never replaced. The NULL literal The NULL literal represents a null value, similarly to null in Java and SQL. Since JPQL is case insensitive, NULL , null and Null are equivalent. Notice

Null returned by Persistence.createEntityManagerFactory

Hi, So I'm currently having an issue where createEntityManagerFactory returns null . When I run ... the application I get an exception. The exception is ultimately caused by a null pointer on the line "em ... rather than an ObjectDB class), it may throw an exception but it never returns null : public static

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

; if (type == null ) {     throw new IllegalArgumentException(    ... the debugger is i can see this member m_idType is null type EntityTypeImpl   (id=57) m_attrMap ... SingularAttributeImpl   (id=96) m_idType null m_superType null m_sysType Class (package.Foo) (id=49) m

How can allow multiple null value in a Unique column.

I have a entity Person have 2 fields Name(Unique) and PhoneNumbers. I wants to allow null value ... ; Manoj Manoj Kumar Maharana ObjectDB considers a null value as any other value, so indeed, for a unique field you cannot have more than one  null value. If you need multiple null values then 

NULL prefered in ORDER BY?

Hi! Is there a way to NOT prefer NULL in Order BY? I.e. assume this: @Entity class Hint {   ... hint; } I've got a few Test entries, some do have a hint assigned, some do not ( NULL ). Now when I ... } and third one to NULL : Test 3 (with hint = NULL ) Test 1 (with hint = A ) Test 2 (with hint = B) And descending: Test 2

Database Explorer

using the following commands: The Edit Set Reference Set to Null command is used to set a reference to null . The Edit Set Reference Set to Existing Entity... command is used to set a reference ... field sets the value to null without deleting any referenced entity object. On the other hand, deleting

JPA Entity Fields

the database every persistent field must contain either null or a value of one of the supported ... a generic java.lang.Object , as long as the type of the actual value at runtime is persistable (or null ... above demonstrates using field and relationship annotations to change the default behavior. null values

FROM clause (JPQL / Criteria API)

inner value it gets at least a  NULL value as a matching value in the FROM iteration. Therefore, a Country c with no Capital city has a minimum representation of (c, NULL ) in the FROM iteration ... variant returns Nauru with a NULL value as its capital. [LEFT [OUTER] | INNER] JOIN FETCH JPA support

Paths and Types in JPQL and Criteria API

). Navigation through a NULL value The following query retrieves country names with their capital city names ... Nauru, c.capital is evaluated to NULL and c.capital.name is an attempt to navigate from a NULL value. In Java, a NullPointerException is thrown on any attempt to access a field or a method via a null

Database Schema Evolution

with default values ( 0 , false or null ). Fields in the old schema that do not have matching fields in ... with a default value ( 0 , false or null ). The following type conversions are supported: From any numeric ... boolean ( 0 , null and false are converted to false , any other value is converted to true ). From

Index Definition

every indexed field must contain either null or a value of one of the following persistable types ... values of the above types (including null ). Indexes can only be defined on ordinary persistent

Retrieving JPA Entity Objects

null is returned. A similar method, getReference , can be considered the lazy version of find ... might be returned ( null is never returned). A hollow object is initialized with the valid primary key

jakarta.persistence.criteria.CriteriaBuilder

asc ( Expression expression , Nulls nullPrecedence ) Create an ordering by the ascending value ... - the precedence of null values Returns: ascending ordering corresponding to the expression ... , Expression y ) Create an expression that returns null if all its arguments evaluate to null

jakarta.persistence.EntityManager

( String graphName ) Obtain a mutable copy of a named EntityGraph , or return null ... there. Parameters: entityClass - entity class primaryKey - primary key Returns: the found entity instance or null ... is null . Since: Jakarta Persistence (JPA) 1.0 T find ( Class entityClass , Object primaryKey , Map

JPA Persistable Types

and values in maps) are either null values or instances of persistable types. In addition

JPA Query Expressions (JPQL / Criteria)

: =, , =, IS [NOT] NULL , [NOT] BETWEEN, including  Collection operators: [NOT] IN, IS [NOT] EMPTY

Deleting JPA Entity Objects

to null or to another Address object. If orphanRemoval=true is specified the disconnected Address

jakarta.persistence.criteria.PluralJoin

String getAlias () Return the alias assigned to the tuple element or null , if no alias ... getAttribute () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Inherited from Join Returns: metamodel attribute or null

jakarta.persistence.criteria.MapJoin

getAlias () Return the alias assigned to the tuple element or null , if no alias has been assigned ... () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Inherited from Join Returns: metamodel attribute or null . Since: Jakarta

jakarta.persistence.criteria.SetJoin

getAlias () Return the alias assigned to the tuple element or null , if no alias has been assigned ... getAttribute () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Inherited from Join Returns: metamodel attribute or null . Since: Jakarta

jakarta.persistence.criteria.CollectionJoin

Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element or null ... , or null if the target of the join is an entity type. Inherited from Join Returns: metamodel attribute or null . Since: Jakarta Persistence (JPA) 1.0 List getCompoundSelectionItems () Return

jakarta.persistence.criteria.ListJoin

String getAlias () Return the alias assigned to the tuple element or null , if no alias has been assigned ... getAttribute () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Inherited from Join Returns: metamodel attribute or null

jakarta.persistence.criteria.Join

null , if no alias has been assigned. Inherited from TupleElement Returns: alias. Since: Jakarta ... target, if any, or null if the target of the join is an entity type. Returns: metamodel attribute or null . Since: Jakarta Persistence (JPA) 1.0 List getCompoundSelectionItems () Return the selection

jakarta.persistence.criteria.CriteriaBuilder.Coalesce

that returns null if all its arguments evaluate to null , and the value of its first non- null argument ... to the tuple element or null , if no alias has been assigned. Inherited from TupleElement Returns: alias ... isNotNull () Create a predicate to test whether the expression is not null . Inherited from Expression

jakarta.persistence.criteria.ParameterExpression

getAlias () Return the alias assigned to the tuple element or null , if no alias has been assigned ... the parameter name, or null if the parameter is not a named parameter or no name has been assigned ... the parameter position, or null if the parameter is not a positional parameter. Inherited from Parameter

jakarta.persistence.criteria.Subquery

assigned to the tuple element or null , if no alias has been assigned. Inherited from TupleElement ... () Return the predicate that corresponds to the restriction(s) over the grouping items, or null ... the predicate that corresponds to the where clause restriction(s), or null if no restrictions

jakarta.persistence.criteria.Path

the alias assigned to the tuple element or null , if no alias has been assigned. Inherited from ... Persistence (JPA) 1.0 Path getParentPath () Return the parent "node" in the path or null ... null . Inherited from Expression Returns: predicate testing whether the expression is not null

jakarta.persistence.criteria.Root

or null , if no alias has been assigned. Inherited from TupleElement Returns: alias. Since: Jakarta ... "node" in the path or null if no parent. Inherited from Path Returns: parent. Since: Jakarta ... to test whether the expression is not null . Inherited from Expression Returns: predicate testing

jakarta.persistence.criteria.From

() Return the alias assigned to the tuple element or null , if no alias has been assigned. Inherited from ... the parent "node" in the path or null if no parent. Inherited from Path Returns: parent ... whether the expression is not null . Inherited from Expression Returns: predicate testing

com.objectdb.o.InternalException: null

Customer spouse = null ;     private Date dateOfBirth = null ;     private String firstName = null ;     private String lastName = null ;     private String personalNumber = null ;     private String street = null ;   

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

via a querying @EJB gives many fields null (and not even empty, I mean truly null ). In ... simple @OneToOne relationship fields that likewise become null : private List ownedElements = new ... .greensoft.entity.test.TestDeepValues [ null ](TEST: test deep values) INFO: RequestBean []: Persisted

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

.ArrayIndexOutOfBoundsException: null java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com ... ,owner); return t; } catch (InstantiationException ex) { logger.log(Level.SEVERE, null , ex); } catch (IllegalAccessException ex) { logger.log(Level.SEVERE, null , ex); } catch (IllegalArgumentException

Enum fields are set to null and embeddable enum class does not show in explorer

in the related objects is set to null . This is highly critical because it will cause data loss ... (fetch = FetchType. EAGER ) @Enumerated(EnumType. STRING ) private List roles = null ; itsme Martin ... ) and the value is null . itsme Martin Petzold  Could this be the case because the enum type

spuriously objectdb objects have null references

are null (i.e. references actions, childNodes), even after a subsequent refresh. we are using a separate ... definitions are (for the null references above): ... @OneToMany(fetch=FetchType.LAZY) @Index public ... that have not been loaded with null values. Detached objects cannot be refreshed. Does it happen

Step 4: Add a Controller Class

name = request.getParameter("name"); if (name != null ) guestDao.persist(new Guest(name

Step 4: Add a Servlet Class

a new guest (if any): String name = request.getParameter("name"); if (name != null ) { em

Step 4: Add a Controller Class

"); if (name != null ) guestDao.persist(new Guest(name)); // Prepare the result view (guest.jsp): return

Step 4: Add a Servlet Class

("name"); if (name != null ) guestDao.persist(new Guest(name)); // Display the list of guests: doGet

Step 4: Add a Servlet Class

a new guest: String name = request.getParameter("name"); if (name != null ) guestDao.persist(new

Step 4: Add a Servlet Class

.getParameter("name"); if (name != null ) { em.getTransaction().begin(); em.persist(new Guest(name)); em