Internal Website 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 ... 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)

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

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

. The admin attribute (whose value is " true " or "false" ) specifies if the user is a superuser

[ODB1] Chapter 5 - JDO Connections

.NontransactionalRead", " true "); properties.setProperty( "javax.jdo.option.NontransactionalWrite", "false"); properties.setProperty( "javax.jdo.option.RetainValues", " true "); properties.setProperty ... getter and setter methods: // Using the setter methods: pmf.setOptimistic( true ); pmf

[ODB1] Chapter 6 - Persistent Objects

in memory is up to date. If true is specified and the object in database is different, the cached ... should also be included ( true indicates that subclasses are required). Iteration over an Extent ... . a transient object or null ). If obj is persistent, i.e. isPersistent(obj) returns true , the other methods

[ODB1] Chapter 4 - JDO Metadata

of the super class, which includes the package name, has to be specified. requires-extent ( true | false ... to its value at the beginning of the transaction. default-fetch-group ( true | false) The default-fetch-group ... can change the default, as demonstrated by fields f3 and f4 . embedded ( true | false) The embedded

javax.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 ... execute () Return true if the first result corresponds to a result set, and false if it is an update

javax.persistence.EntityManagerFactory

each time it is invoked. The isOpen method will return true on the returned instance. Return: entity ... time it is invoked. The isOpen method will return true on the returned instance. Parameters: map ... . The isOpen method will return true on the returned instance. Parameters: synchronizationType

javax.persistence.criteria.CriteriaBuilder

of the given restriction predicates. A conjunction of zero predicates is true . Parameters: restrictions ... conjuncts is true . Return: and predicate Since: JPA 2.0 CompoundSelection construct (Class   ... is empty, the predicate will be true . Parameters: elem - element collection - expression Return: is-not

[ODB1] Chapter 7 - JDOQL Queries

represents the iterated object. Only instances for which the evaluation of the filter expression is true ... ' , ... string "", " ", "abcd\n1234" , ... boolean true , false reference null   As shown in ... "this.verified" is a valid query filter. It selects all the objects with the true value in that field

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  

javax.persistence.OrderColumn

insertable 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. Since: JPA 2.0 boolean updatable default true (Optional) Whether the column is included in SQL

javax.persistence.Column

a column of the inferred type. Since: JPA 1.0 boolean insertable default true (Optional) Whether the column ... field name. Since: JPA 1.0 boolean nullable default true (Optional) Whether the database column ... at the table level. Since: JPA 1.0 boolean updatable default true (Optional) Whether the column is included

javax.persistence.Convert

) boolean fullTime; ... } Example 2: Auto-apply conversion of a basic attribute @Converter(autoApply= true ... = true ) EmployeeDate lastReview; Example 4: Apply a converter to an element collection of basic type ... . If disableConversion is true , the converter element should not be specified. Since: JPA 2.1

javax.persistence.JoinColumn

true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence ... of the referenced primary key column. Since: JPA 1.0 boolean nullable default true (Optional) Whether the foreign ... key that is part of a foreign key. Since: JPA 1.0 boolean updatable default true (Optional

javax.persistence.PersistenceUtil

, else true Since: JPA 2.0 boolean isLoaded (Object entity, String attributeName ... state has not been loaded or if the attribute state has not been loaded, else true Since: JPA 2.0

javax.persistence.PersistenceUnitUtil

if the entity has not been loaded, else true Since: JPA 2.0 boolean isLoaded (Object entity,  ... has not been loaded or if the attribute state has not been loaded, else true Since: JPA 2.0

javax.persistence.MapKeyJoinColumn

provider's default foreign key strategy will apply. Since: JPA 2.1 boolean insertable default true ... boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.OneToOne

( name="CUSTREC_ID", unique= true , nullable=false, updatable=false) public CustomerRecord ... default true (Optional) Whether the association is optional. If set to false then a non-null

[ODB1] Chapter 2 - A Quick Tour

)pm.getObjectById("Hello World", true ); 21 } 22 catch (JDOException x) { 23 // If not found ... whether the Extent should also represent instances of subclasses (changing false to true has no effect

javax.jdo.PersistenceManager

- the class of instances to evict subclasses - if true , mark instances of subclasses also Since: JDO 2.1 ... (persistenceCapableClass, true ) . See Also: getExtent Since: JDO 2.0 Extent getExtent (Class   ... 2.0 boolean getIgnoreCache () Get the ignoreCache setting for queries. IgnoreCache set to true

javax.jdo.spi.StateInterrogation

until one of them returns true , indicating that it has handled the call. An instance that implements ... that have been deleted in the current transaction return Boolean. TRUE . Instances known by the implementation ... . Parameters: pc - the instance. Return: Boolean. TRUE if the parameter instance was deleted in

javax.jdo.spi.PersistenceCapable

has been deleted. Instances that have been deleted in the current transaction return true . Transient instances return false. Return: true if this instance was deleted in the current transaction ... that have been detached return true . Transient instances return false. Return: true if this instance

javax.jdo.JDOHelper

has been deleted. Instances that have been deleted in the current transaction return true ... . Parameters: pc - the PersistenceCapable instance. Return: true if the parameter instance was deleted in ... has been detached. Instances that have been detached return true . Transient instances return false. Parameters

javax.jdo.Transaction

() If true , allows persistent instances to be read without a transaction active. Return: the value of the nontransactionalRead property Since: JDO 1.0 boolean getNontransactionalWrite () If true , allows ... of the restoreValues property Since: JDO 1.0 boolean getRetainValues () If true , at commit time

javax.jdo.spi.StateManager

whether this object has been deleted. Instances that have been deleted in the current transaction return true ... : true if this instance was deleted in the current transaction. See Also: PersistenceManager ... transaction return true . Transient nontransactional instances return false . Parameters: pc

javax.jdo.Query

for all variables for which the filter expression evaluates to true . Parameters: parameters - the Object array ... . If the filter is not specified, then it defaults to " true ", which has the effect of filtering the input ... a value for which the filter expression evaluates to true . The user may denote uniqueness in

javax.jdo.PersistenceManagerFactory

until it is closed. Return: true if this PersistenceManagerFactory has been closed. See Also: close ... for all PersistenceManager instances obtained from this factory. CopyOnAttach set to true specifies ... (boolean restoreValues) Set the default value for the RestoreValues property. If true

javax.jdo.datastore.DataStoreCache

of instances to evict subclasses - if true , evict instances of subclasses also Since: JDO 2.1 void pin ... of instances to pin subclasses - if true , pin instances of subclasses also Since: JDO 2.1 void ... . Parameters: pcClass - the class of instances to unpin subclasses - if true , unpin instances of subclasses also Since: JDO 2.1

PersistenceManager.retrieveAll(useFetchPlan,pcs) - JDO Method

. If the useFetchPlan parameter is true , and the fetch plan has not been modified from its default setting ... the implementation. If the useFetchPlan parameter is true , and the fetch plan has been changed from

StateManager.isDeleted(pc) - JDO Method

transaction return true . Transient instances return false . Parameters: pc - the calling PersistenceCapable instance Return: true if this instance was deleted in the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) Since: JDO 1.0

StateManager.isNew(pc) - JDO Method

in the current transaction return true . Transient instances return false . Parameters: pc - the calling PersistenceCapable instance Return: true if this instance was made persistent in the current

StateManager.isTransactional(pc) - JDO Method

return true . These instances include transient instances made transactional as a result ... PersistenceCapable instance Return: true if this instance is transactional. Since: JDO 1.0

StateManager.isDirty(pc) - JDO Method

made persistent in the current transaction return true . Transient nontransactional instances return false . Parameters: pc - the calling PersistenceCapable instance Return: true if this instance