ObjectDB Database Search

1-50 of 200 results

orphanRemoval = true not working when CascadeType.REMOVE is disabled

Dear all, I have entities Employee and Address, their relation is defined (full example in attachment): @Entity     public static class Employee { ....         @OneToMany(orphanRemoval = true )         private Set

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 ... is NULL and the other operand is either TRUE or NULL , the result is NULL (unknown). ObjectDB supports

Database Management Settings

is " true " or "false" ) specifies if a recovery file is used. The sync attribute (whose value is " true ... is much faster in writing data to a database, but true might be safer in production. By default, the recovery ... ). The element specifies the recording settings: The enabled attribute (whose value is " true " or "false

Collections in JPQL and Criteria Queries

IS EMPTY is TRUE if the collection is empty and FALSE otherwise. c.languages IS NOT EMPTY is FALSE if the collection is empty and TRUE otherwise. SIZE The SIZE(collection) function returns the number ... OF c.languages is TRUE if languages contains 'English' and FALSE if not. 'English' NOT MEMBER OF c

Literals in JPQL and Criteria Queries

including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), string literals ... supports two boolean literals - TRUE and FALSE . Since JPQL is case insensitive, TRUE is equivalent to true and True , and FALSE is equivalent to false and False . Numeric Literals JPQL supports

Deleting JPA Entity Objects

class Employee { : @OneToOne ( orphanRemoval = true ) private Address address; : } When an Employee ... this regard, orphanRemoval= true and cascade=CascadeType.REMOVE are identical, and if orphanRemoval= true is specified, CascadeType.REMOVE is redundant. The difference between the two settings is in

Entity Management Settings

The element specifies enhancement related settings: The agent attribute (whose value is " true " or "false ... is " true " or "false" ) specifies if lazy loading of entity objects content is enabled. Instantiating ... . The element The serialization attribute of the element (whose value is " true " or "false

Comparison in JPQL and Criteria API

= NULL NULL = NULL NULL NULL NULL == FALSE TRUE != TRUE FALSE Comparison operators are always evaluated to TRUE , FALSE or NULL . When both operands are not NULL (not shown in the table) the operator is evaluated to either TRUE or FALSE , and in that case, == is equivalent to = and != is equivalent

Strings in JPQL and Criteria Queries

(usually a parameter or literal). For example: c.name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' c.name LIKE '%' is always TRUE (for any c.name value). c.name NOT LIKE '%' is always FALSE ... ;is evaluated to TRUE . '100' LIKE '%\%' ESCAPE '\' is evaluated to FALSE . In the expressions

Index Definition

; @Entity public class EntityWithSimpleIndex { @Index String indexedField1; @Index ( unique =" true ") int ... ). @Index represents either an ordinary index with no unique constraint or a unique index if unique=" true ... ( members ={"firstName"}, unique =" true ") }) public class EntityWithCompositeIndex { String

SSL Configuration

contains the following element: The enabled attribute of the ssl element (whose value is " true " or ... the enabled attribute of the ssl  element has to be set to true . Every Keystore / Truststore file

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

SELECT clause (JPQL / Criteria API)

.class); Root c = q. from (Country.class); q. select (c. get ("currency")). distinct ( true

FROM clause (JPQL / Criteria API)

, SUBSTRING, SUM, THEN,TRAILING, TRIM, TRUE , TYPE, UNKNOWN, UPDATE, UPPER, VALUE, WHEN, WHERE. JPQL

WHERE clause (JPQL / Criteria API)

evaluates to TRUE are passed to the SELECT clause and then collected as query results. WHERE Predicate

Database Schema Evolution

boolean ( 0 , null and false are converted to false , any other value is converted to true ). From

Shared (L2) Entity Cache

explicitly. For example: @Cacheable // or @Cacheable( true ) @Entity public class

Server User List

is " true " or "false" ) specifies if the user is a superuser. A superuser is authorized to manage

InterfaceRef jakarta.persistence.PersistenceUnitUtil

true if the given entity belonging to the persistence unit and to an open persistence context ... state has not been loaded or if the attribute state has not been loaded, else true Since: JPA 3.2 ... state is to be determined Return: false if the entity has not been loaded, else true Since: JPA 2.0

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

restriction predicates. A conjunction of zero predicates is true . Parameters: restrictions - a list ... predicates is true . Parameters: restrictions - zero or more restriction predicates Return ... conjuncts is true . Return: and predicate Since: JPA 2.0 CompoundSelection construct (Class  

InterfaceRef jakarta.persistence.StoredProcedureQuery

with output parameter values). The execute method returns true if the first result is a result set ... , if any. If the execute method returns true , the pending result set can be obtained by calling ... () Return true if the first result corresponds to a result set, and false if it is an update count

InterfaceRef jakarta.persistence.EntityManagerFactory

will return true on the returned instance. Return: entity manager instance Throws ... . The EntityManager.isOpen method will return true on the returned instance. Parameters: map - properties ... . The EntityManager.isOpen method will return true on the returned instance. Parameters: synchronizationType

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  

AnnotationRef jakarta.persistence.OrderColumn

default true (Optional) Whether the column is included in SQL INSERT statements generated by ... ". Since: JPA 2.0 boolean nullable default true (Optional) Whether the database column is nullable ... true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

AnnotationRef jakarta.persistence.Column

is in effect. Since: JPA 3.2 boolean insertable default true (Optional) Whether the column ... of the column. Defaults to the property or field name. Since: JPA 1.0 boolean nullable default true ... mapping and to constraints specified at the table level. Since: JPA 1.0 boolean updatable default true

AnnotationRef jakarta.persistence.JoinColumn

boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements ... true (Optional) Whether the foreign key column is nullable. Since: JPA 1.0 String options default ... key that is part of a foreign key. Since: JPA 1.0 boolean updatable default true (Optional

InterfaceRef jakarta.persistence.PersistenceUtil

- whose load state is to be determined Return: false if the entity has not been loaded, else true ... has not been loaded or if the attribute state has not been loaded, else true Since: JPA 2.0

InterfaceRef jakarta.persistence.SchemaManager

. Parameters: createSchemas - if {@code true } , attempt to create schemas, otherwise, assume the schemas ... and continue. Parameters: dropSchemas - if {@code true } , drop schemas, otherwise, leave them be Since: JPA 3.2

AnnotationRef jakarta.persistence.MapKeyJoinColumn

true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence ... default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

StoredProcedureQuery.hasMoreResults() - JPA Method

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. Return: true if next result corresponds

InterfaceRef jakarta.persistence.Subgraph

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

AnnotationRef jakarta.persistence.MapKeyColumn

boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements ... level. Since: JPA 2.0 boolean updatable default true (Optional) Whether the column is included in

InterfaceRef jakarta.persistence.Graph

attribute node for the given attribute. Parameters: attribute - attribute Return: true ... : attributeName - name of the attribute Return: true if there is an existing attribute node Throws

AnnotationRef jakarta.persistence.Basic

. Since: JPA 1.0 boolean optional default true (Optional) Specifies whether the value of the field or ... generation to infer that the mapped column is not null . If not specified, defaults to true . Since: JPA 1.0

StoredProcedureQuery.execute() - JPA Method

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. Return: true if first result corresponds

AnnotationRef jakarta.persistence.Converter

the actual type argument of the first type parameter of AttributeConverter . If autoApply = true ... never applies to any attribute annotated @Convert(disableConversion= true ) , or to an attribute

AnnotationRef jakarta.persistence.Convert

() autoApply=false , overriding the use of a converter defined autoApply= true , or overriding the use ... . If disableConversion = true , the converter element should not be specified. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.Basic.optional

JPA Annotation Attribute in jakarta.persistence.Basic boolean optional default true (Optional) Specifies whether the value of the field or property may be null. This is a hint and is disregarded for primitive types; it may be used in schema generation to infer that the mapped column is not null . If not specified, defaults to true . Since: JPA 1.0

InterfaceRef jakarta.persistence.EntityGraph

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

SingularAttribute.isId() - JPA Method

JPA Method in jakarta.persistence.metamodel.SingularAttribute boolean isId () Is the attribute an id attribute? This method returns true if the attribute is a plain, an plain, or an attribute of an plain. Return: boolean indicating whether the attribute is an id Since: JPA 2.0

InterfaceRef jakarta.persistence.metamodel.SingularAttribute

true if the attribute is a plain, an plain, or an attribute of an plain. Return: boolean indicating

EntityTransaction.begin() - JPA Method

JPA Method in jakarta.persistence.EntityTransaction void begin () Start a resource transaction. Throws: IllegalStateException - if {@link #isActive()} is true Since: JPA 1.0

InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType

type has a single id attribute. Returns true for a simple id or embedded id; returns false

InterfaceRef jakarta.persistence.EntityTransaction

()} is true Since: JPA 1.0 void commit () Commit the current resource transaction, writing any unflushed

PersistenceUtil.isLoaded(entity) - JPA Method

: entity - whose load state is to be determined Return: false if the entity has not been loaded, else true Since: JPA 2.0

PersistenceUtil.isLoaded(entity,attributeName) - JPA Method

if the attribute state has not been loaded, else true Since: JPA 2.0

EntityManagerFactory.isOpen() - JPA Method

JPA Method in jakarta.persistence.EntityManagerFactory boolean isOpen () Indicates whether the factory is open. Returns true until the factory has been closed. Return: boolean indicating whether the factory is open Since: JPA 1.0

PersistenceUnitUtil.isLoaded(entity) - JPA Method

Return: false if the entity has not been loaded, else true Since: JPA 2.0

PersistenceUnitUtil.isLoaded(entity,attributeName) - JPA Method

: false if entity's state has not been loaded or if the attribute state has not been loaded, else true Since: JPA 2.0