ObjectDB Database Search

1-50 of 190 results

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 ... the expression false. If one operand is NULL and the other is TRUE or NULL , the result is NULL

Database Management Settings

the database. The element specifies the recovery file settings: The enabled attribute ( " true " or "false" ) specifies whether a recovery file is used. The sync attribute ( " true " or "false ... sync= "false" results in much faster database writes, but sync=" true " is safer for production

Collections in JPQL and Criteria Queries

.languages IS EMPTY evaluates to TRUE if the collection is empty and FALSE otherwise. c.languages IS NOT EMPTY evaluates to TRUE if the collection is not empty and FALSE otherwise. SIZE The SIZE ... . For example: 'English' MEMBER OF c.languages evaluates to TRUE if the languages collection contains

Literals in JPQL and Criteria Queries

, including NULL , boolean literals ( TRUE and FALSE ), numeric literals (for example, 100 ), string ... supports two boolean literals: TRUE and FALSE . Because JPQL is case-insensitive, TRUE is equivalent to true and True , and FALSE is equivalent to false and False . Numeric literals JPQL supports

Strings in JPQL and Criteria Queries

: c.name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' . c.name LIKE '%' is always TRUE ... in an ESCAPE clause. For example: '100%' LIKE '%\%' ESCAPE '\' is evaluated to TRUE . '100' LIKE

Index Definition

class EntityWithSimpleIndex { @Index String indexedField1; @Index ( unique =" true ") int indexedField2 ... or a unique index if you specify unique=" true " . The default value for unique is false ... "}), @Index ( members ={"firstName"}, unique =" true ") }) public class EntityWithCompositeIndex

SELECT clause (JPQL / Criteria API)

. get ("currency")). distinct ( true ); The select method takes one argument of type Selection and sets

FROM clause (JPQL / Criteria API)

, SET, SIZE, SOME, SQRT, SUBSTRING, SUM, THEN,TRAILING, TRIM, TRUE , TYPE, UNKNOWN, UPDATE, UPPER, VALUE

WHERE clause (JPQL / Criteria API)

. Only Country objects for which the predicate evaluates to TRUE are passed to the SELECT clause

Query Parameters in JPA

, compiled query program if one is available. This is true even if a new TypedQuery instance

Database Schema Evolution

to false ; any other value is converted to true ). From any type to String (using toString

NPE using AND TRUE in WHERE clause

The following (dynamically generated) query causes an NPE: SELECT e FROM Event e WHERE e.account=:account AND TRUE When I change it to a trivial term which evaluates to true , it works fine: SELECT e FROM Event e WHERE e.account=:account AND 1=1 Here is the stack trace: om.objectdb.o

jakarta.persistence.PersistenceUnitUtil

, Class entityClass ) Return true if the given entity belonging to the persistence unit and to an open ... has not been loaded or if the attribute state has not been loaded, else true . Since: Jakarta ... : false if entity's state has not been loaded or if the attribute state has not been loaded, else true

jakarta.persistence.criteria.CriteriaBuilder

) Create a conjunction of the given restriction predicates. A conjunction of zero predicates is true ... restriction predicates. A conjunction of zero predicates is true . Parameters: restrictions - a list of zero or ... a conjunction (with zero conjuncts). A conjunction with zero conjuncts is true . Returns: and predicate

jakarta.persistence.EntityManagerFactory

true on the returned instance. Returns: entity manager instance. Throws: IllegalStateException ... . The EntityManager.isOpen method will return true on the returned instance. Parameters: map - properties ... it is invoked. The EntityManager.isOpen method will return true on the returned instance. Parameters

jakarta.persistence.Convert

defined autoApply= true , or overriding the use of a converter specified by a field or property ... ; ... } Example 2: Auto-apply conversion of a basic attribute @Converter(autoApply = true ) public class ... : Disable conversion in the presence of an autoapply converter @Convert(disableConversion = true

jakarta.persistence.JoinColumn

) Whether the foreign key column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean insertable ... provider. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default: true

jakarta.persistence.PersistenceUtil

state has not been loaded or if the attribute state has not been loaded, else true . Since: Jakarta ... : false if the entity has not been loaded, else true . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Graph

for the attribute with the given name. Parameters: attributeName - name of the attribute Returns: true ... : attribute - attribute Returns: true if there is an existing attribute node. Since: Jakarta Persistence

jakarta.persistence.MapKeyColumn

statements generated by the persistence provider. Default: true Since: Jakarta Persistence (JPA) 1.0 ... the persistence provider. Default: true Since: Jakarta Persistence (JPA) 1.0 String columnDefinition

jakarta.persistence.MapKeyJoinColumn

provider. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default: true

jakarta.persistence.Converter

type parameter of AttributeConverter . If autoApply = true , the persistence provider ... attribute annotated @Convert(disableConversion= true ) , or to an attribute for which the Convert

jakarta.persistence.EntityGraph

of the attribute Returns: true if there is an existing attribute node. Throws: IllegalArgumentException ... attribute. Inherited from Graph Parameters: attribute - attribute Returns: true if there is an existing

jakarta.persistence.StoredProcedureQuery.execute()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery boolean execute() Return true if the first result corresponds to a result set, and false if it is an update count or if there are no results other than through INOUT and OUT parameters, if any. Returns: true if first

jakarta.persistence.StoredProcedureQuery.hasMoreResults()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery boolean hasMoreResults() Return true if the next result corresponds to a result set, and false if it is an update count or if there are no results other than through INOUT and OUT parameters, if any. Returns: true

jakarta.persistence.ManyToOne

is not null . Default: true Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from

jakarta.persistence.EntityTransaction

a resource transaction. Throws: IllegalStateException - if isActive is true . Since: Jakarta Persistence

jakarta.persistence.EntityManager

whether the entity manager is open. Returns: true until the entity manager has been closed. Since: Jakarta

jakarta.persistence.criteria.Subquery

distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates

jakarta.persistence.metamodel.IdentifiableType

attribute. Returns true for a simple id or embedded id; returns false for an idclass. Returns

jakarta.persistence.metamodel.EntityType

() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns

jakarta.persistence.metamodel.SingularAttribute

() Is the attribute an id attribute? This method returns true if the attribute is a simple id , an embedded

jakarta.persistence.metamodel.MappedSuperclassType

() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object)

whose load state is to be determined Returns: false if the entity has not been loaded, else true . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

. After this method returns, PersistenceUnitUtil.isLoaded must return true with the given entity instance

jakarta.persistence.PersistenceUnitUtil.load(E,Attribute)

. After this method returns, PersistenceUnitUtil.isLoaded must return true with the given entity instance

jakarta.persistence.PersistenceUnitUtil.load(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load (    Object entity ) Load the persistent state of an entity belonging to the persistence unit and to an open persistence context. After this method returns, PersistenceUnitUtil.isLoaded must return true

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String)

Returns: false if entity's state has not been loaded or if the attribute state has not been loaded, else true . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute)

if entity's state has not been loaded or if the attribute state has not been loaded, else true . Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.AbstractQuery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained

jakarta.persistence.metamodel.SingularAttribute.isId()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.SingularAttribute boolean isId() Is the attribute an id attribute? This method returns true if the attribute is a simple id , an embedded id , or an attribute of an id class . Returns: boolean indicating whether the attribute is an id. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.IdentifiableType.hasSingleIdAttribute()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType boolean hasSingleIdAttribute() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass. Returns: boolean indicating whether the identifiable

jakarta.persistence.criteria.Subquery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained. If distinct

jakarta.persistence.Graph.hasAttributeNode(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Graph boolean hasAttributeNode (    String attributeName ) Determine if there is an existing attribute node for the attribute with the given name. Parameters: attributeName - name of the attribute Returns: true

jakarta.persistence.Graph.hasAttributeNode(Attribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.Graph boolean hasAttributeNode (    Attribute attribute ) Determine if there is an existing attribute node for the given attribute. Parameters: attribute - attribute Returns: true if there is an existing attribute node. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityTransaction.begin()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void begin() Start a resource transaction. Throws: IllegalStateException - if EntityTransaction.isActive is true . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.isOpen()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean isOpen() Determine whether the entity manager is open. Returns: true until the entity manager has been closed. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManagerFactory.createEntityManager()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager() Create a new application-managed EntityManager . This method returns a new EntityManager instance each time it is invoked. The EntityManager.isOpen method will return true

Step 1: Create a Maven Web Project

-plugin 6.1.10 10 foo 9999 start-jetty pre-integration-test run 0 true stop-jetty post-integration-test

Step 1: Create a Maven Web Project

;         0         true