ObjectDB Database Search
1-50 of 200 resultsorphanRemoval = 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 :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 | |
Comparison in JPQL and Criteria API One NULL operand Two NULL operands = NULL NULL = NULL NULL NULL NULL == FALSE TRUE != TRUE FALSE Comparison operators always evaluate to TRUE , FALSE , or NULL . When neither operand is NULL (a case not shown in the table), the operator evaluates to either TRUE or FALSE . In this case, == is equivalent | |
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 | |
Deleting JPA Entities: @Entity class Employee { : @OneToOne ( orphanRemoval = true ) private Address address; : } When an Employee ... this respect, orphanRemoval= true is identical to cascade=CascadeType.REMOVE . If you specify orphanRemoval= true , specifying CascadeType.REMOVE is redundant. The difference between the two settings | |
Entity Management Settings settings: The agent attribute (with a value of " true " or "false" ) specifies whether to load ... . The element The hollow attribute of the element (with a value of " true " or "false" ) specifies ... (with a value of " true " or "false" ) specifies whether to use serialization as a fallback persistence | |
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 | |
SSL Configuration of the ssl element, which can be set to true or false , specifies whether SSL is used. As shown in ... attribute of the ssl element must be set to true . Every keystore or truststore file is represented by | |
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). 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 | |
JPA Shared (L2) Entity Cache except those explicitly marked as @Cacheable . For example: @Cacheable // or @Cacheable( true ) @Entity public class | |
JPA Components Annotations caching: Specifies whether the entity is eligible for the second-level cache. Set to true or false | |
Server User List - 192.18.194.255 and from 127.0.0.1 . The admin attribute, with a value of true or false , specifies | |
JPA Primary Key key requires more storage space and is less efficient for store operations. This is especially true | |
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.StoredProcedureQuery counts, possibly also in combination with output parameter values). The execute method returns true ... other than through INOUT and OUT parameters, if any. If the execute method returns true , the pending result ... Since: Jakarta Persistence (JPA) 2.1 Public Instance Methods boolean execute () Return true if the first | |
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.Column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean insertable (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Default: true ... UPDATE statements generated by the persistence provider. Default: true Since: Jakarta Persistence | |
jakarta.persistence.OrderColumn) Whether the database column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean insertable ... . 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.Basic is not null . If not specified, defaults to true . Default: true Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.SchemaManager it may ignore the problem and continue. Parameters: createSchemas - if true , attempt to create schemas ... may throw an exception, or it may ignore the problem and continue. Parameters: dropSchemas - if true | |
jakarta.persistence.Subgraph Parameters: attributeName - name of the attribute Returns: true if there is an existing attribute node ... - attribute Returns: true if there is an existing attribute node. Since: Jakarta Persistence (JPA) 3.2 void | |
jakarta.persistence.OneToOne(optional = false) @JoinColumn(name = "CUSTREC_ID", unique = true , nullable = false, updatable ... . Default: true Since: Jakarta Persistence (JPA) 1.0 String mappedBy (Optional) The field that owns | |
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.Basic.optional . If not specified, defaults to true . Default: true Since: Jakarta Persistence (JPA) 1.0 | |
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 | |
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   |