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

Logical Operators in JPQL and Criteria API

:area Valid operands for the AND operator are TRUE , FALSE , or 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 an unknown value. Therefore, if one operand

Literals in JPQL and Criteria Queries

, including NULL , boolean literals ( TRUE and FALSE ), numeric literals (for example, 100 ), string ... value is always used and never replaced. The NULL literal The NULL literal represents a null value, similar to null in Java and SQL. Because JPQL is case-insensitive, NULL , null , and Null

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

@OneToOne query issue with OR and IS NULL

"another" is null ... in the second one "another" is set. Now I want to query " select from A where another is null OR another.counter = 0 "  What I expected to get where the 2 entities I inserted before. But I always get just the entity A were "another" is not null . Could someone help

pm.newObjectIdInstance returns null

) throws PersistenceLayerException { MyClass myclass = null ; try{ Object objectid = pm ... (JDOException jdoe){ } return myclass; } objectid is coming back as null .  Does this problem ... is to search for an ID class, and if this fails a null is returned. You can check that operation

Missing (null) elements in eager loaded references

: Sometimes! only on our server! I get a NullPointer exception, because an element is null which is! not null ... () The getLabel() throws an NullPointer because the DataElement at index 0 is not yet present and thus null ... the elements are yet not loaded from the db and thus are null ? Otherwise a cannot explain

JPA Entity Fields

superclasses. When an entity is stored in the database, each persistent field must contain either null or ... is a persistable type or null . You can mark each persistent field with one of the following annotations ... . By default, null values are allowed. Specifying optional=false , as shown for field1 , throws

FROM clause (JPQL / Criteria API)

variable does not have any matching inner value, it is paired with a NULL value in the FROM iteration. Therefore, a Country c with no Capital city is represented as the pair ( c , NULL ) in the FROM ... , the OUTER JOIN variant returns Nauru with a NULL value as its capital. [LEFT [OUTER] | INNER] JOIN FETCH JPA

Database Schema Evolution

( 0 , false , or null ). Fields in the old schema that do not have matching fields in the new schema ... , and the new field is initialized with a default value ( 0 , false , or null ). The following type ... values (the default). From any type to Boolean or boolean . ( 0 , null , and false are converted

Index Definition

files. When an entity is stored in the database, every indexed field must contain either null or a value ... to an entity Arrays and collections that contain values of the above types, including null You can define

Retrieving JPA Entities

it. If the object is not in the database, find returns null . A similar method, getReference , is a lazy ... , getReference might return a hollow object instead of querying the database immediately. It never returns null

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 Criteria Query Expressions

represent specific SQL-like expressions: An expression that returns the first non- null value from a list

JPA Persistable Types

their values (that is, elements in collections and arrays, and keys and values in maps) are either ` null

JPA Query Expressions (JPQL / Criteria)

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

Deleting JPA Entities

is how they handle a disconnected relationship, for example, when you set the address field to null or

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 ... () 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 items

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. Inherited ... 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 if no parent ... 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

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

NULL reference, how to remove

;   hgzwicker Hans-Georg Zwicker More information is needed about this NULL reference ... such null references do you have? Do you have any idea what operation could be related to these specific actions that made them NULL ? support Support Is there new information regarding this null

JDO PersistenceManager.getSequence() returns null sometimes

to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null . Code ... = pm.getSequence("seq"); // per JDO spec, it should be testcase.seq if (seq1 == null ) System.out.println("getSequence 1 returned null "); // it should never be null pm.currentTransaction().begin

[ODB1] Chapter 6 - Persistent Objects

). If getObjectID( ... ) is called with a transient parameter, it returns null . If it is called with a new ... , but also a Class instance. ObjectDB ignores the first argument. Therefore, a null value can also be specified ... null values in the debugger). When an access to another persistent object is made, the object

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

[ODB1] Chapter 9 - ObjectDB Explorer

, to an exiting object or to null . You can add objects or references to a persistent collection  ... to the context. Deleting a reference field sets the value to null without deleting any referenced persistent

[ODB1] Chapter 3 - Persistent Classes

) must have a reference to an object whose type is persistent at storage time, e.g. an Integer , or null ... with default values ( 0 , false or null ). Old persistent fields that are missing in the new class