Internal Website Search

1-50 of 183 results

Index Definition

on more than one persistent field. It is defined by specifying multiple fields in the members attribute of the @Index or @Unique annotations: @Entity @Index ( members ={"lastName","firstName"}) public class ... explicitly in the members attribute, as shown above, the @Index or @Unique annotation can be attached

Collections in JPQL and Criteria Queries

to the number of languages in that collection. [NOT] MEMBER [OF] The [NOT] MEMBER OF operator checks if a specified element is contained in a specified persistent collection field. For example: 'English' MEMBER OF c.languages is TRUE if languages contains 'English' and FALSE if not. 'English' NOT MEMBER OF c

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured embedable but is/are mapped by id like the two members below.  @Entity public class Customer ... ; @Entity @Indices({ @Index( members ={"merchant.name"}), @Index( members ={"stores.name

Possible Bug in MEMBER OF

Hello! I maybe found another bug in version 2.3.3. I'll send you a test DB via support ticket. Try the following query in explorer: SELECT u FROM Unit u WHERE :user MEMBER OF u.users Set user ... for operator MEMBER OF SELECT u FROM Unit u WHERE :user MEMBER OF u. == users

Unique contraint with 2 members

I am trying to do the following: @javax.persistence.Entity public class Account { @Unique() private String name; @Unique( members ={"SalesforceID","sport"}) private String SalesforceID; private String ... ;   @Unique( members ={"SalesforceID","sport"})        

JSON serialization and __odbHidden members

. Thanks. tester15 John The ObjectDB Enhancer adds members to enhanced entity classes ... to these added members . Will it solve the situation that you are currently facing? support Support Yes

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person @Entity @Unique( members = {"name", "surname"}) public class Person implements Serializable {     @Id    ... ( members = {"name", "surname"})     public static class Person implements Serializable

removing members in existing databases

Hi team i might ask for the best practice to remove some members (i.e. collections) in existing databases. There are several aproaches and I'm not shure wich on is best. 1. Just make the list empty ... a very suitable amount of time. I checked in explorer and the unused members are gone

Query with MEMBER OF on hash map values

Hello, we want to execute following query: SELECT tc FROM TC tc WHERE ?1 MEMBER OF tc.testMacros.values() But we get an internal ObjectDB exception. It is possible to implement a query for this case at all?   @Entity public class TC { @OneToMany Map testMacros = new HashMap(); }   btc_es

member visiting in jpql

member visiting in jpql

Persisting collection where members are subclasses

Persisting collection where members are subclasses

GROUP BY and HAVING clauses

that currency: SELECT c.currency, SUM(c.population) FROM Country c WHERE 'Europe' MEMBER OF c.continents ... WHERE 'Europe' MEMBER OF c.continents GROUP BY c.currency HAVING COUNT(c) 1 The HAVING clause stands as ... ), AVG(c.population) FROM Country c WHERE 'English' MEMBER OF c.languages All the Country objects

FROM clause (JPQL / Criteria API)

WHERE c2 MEMBER OF c1.neighbors Multiple variables are equivalent to nested loops in a program ... , MEMBER , MIN, MOD, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT, SET, SIZE

Logical Operators in JPQL and Criteria API

: Predicate p1 = cb. and (isInUN, isInEU); // Member of both UN and EU Predicate p2 = cb. or (isInOECD, isLarge); // Either OECD member or large Additional factory methods are available for a variant number

JPA Metamodel API

representation of the field (or property) type: Member member = attr. getJavaMember

JPA Query Expressions (JPQL / Criteria)

, [NOT] MEMBER [OF] and the [NOT] LIKE operator. Logical operators : AND, OR, NOT. In addition, JPA

ORDER BY clause (JPQL / Criteria API)

.currency, SUM(c.population) FROM Country c WHERE 'Europe' MEMBER OF c.continents GROUP BY c

Multiple MEMBER OF query

that have one label: SELECT i FROM Item i WHERE :label MEMBER OF item.labels I can select items with any of several labels: SELECT i FROM Item i WHERE :label1 MEMBER OF item.labels OR :label2 MEMBER ... gets no items: SELECT i FROM Item i WHERE :label1 MEMBER OF item.labels AND :label2 MEMBER OF item

InternalException when using MEMBER OF on a large list in a query

Hello, we get when executing a query with MEMBER OF on a large list the following ... " + propertyClassName + " AS property, " + recordClassName + " AS record " + "WHERE property.uid MEMBER OF record.properties AND property.scopeID MEMBER OF ?1"; TypedQuery q = em.createQuery(query, String.class); q

javax.persistence.criteria.CriteriaBuilder

that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element collection - expression Return: is- member predicate Since: JPA ... a predicate that tests whether an element is a member of a collection. If the collection is empty

javax.jdo.annotations.PersistenceCapable.members

JDO Annotation Attribute in javax.jdo.annotations.PersistenceCapable Persistent [] members default {} Member declarations. Annotations for persistent members of this class or interface can be specifed either here or on each member . Annotations for inherited members can only be specified here. Since: JDO 2.1

javax.jdo.annotations.FetchGroup.members

JDO Annotation Attribute in javax.jdo.annotations.FetchGroup Persistent [] members default null Members (fields and properties) of the fetch group. The members should contain only name and recursionDepth. Since: JDO 2.1

javax.jdo.annotations.Unique.members

JDO Annotation Attribute in javax.jdo.annotations.Unique String[] members default {} Member (field and property) names that compose this unique constraint. Since: JDO 2.1

javax.jdo.annotations.Index.members

JDO Annotation Attribute in javax.jdo.annotations.Index String[] members default {} Member (field and property) names that compose this index. Since: JDO 2.1

javax.jdo.annotations.ForeignKey.members

JDO Annotation Attribute in javax.jdo.annotations.ForeignKey String[] members default {} Member (field and property) names that compose this foreign key. Since: JDO 2.1

javax.jdo.annotations.Embedded.members

JDO Annotation Attribute in javax.jdo.annotations.Embedded Persistent [] members default {} Members for this embedding. Since: JDO 2.1

javax.persistence.criteria.Expression

Predicate in (Collection  values) Create a predicate to test whether the expression is a member ... to test whether the expression is a member of the argument list. Parameters: values - expressions ... ;values) Create a predicate to test whether the expression is a member of the collection. Parameters

javax.persistence.criteria.ParameterExpression

to test whether the expression is a member of the collection. Parameters: values - collection of values ... is a member of the argument list. Parameters: values - expressions to be tested against Return ... ;values) Create a predicate to test whether the expression is a member of the collection. Parameters

javax.persistence.criteria.CriteriaBuilder$Coalesce

(Collection  values) Create a predicate to test whether the expression is a member ... ) Create a predicate to test whether the expression is a member of the argument list. Parameters: values ... whether the expression is a member of the collection. Parameters: values - expression corresponding to collection

javax.persistence.criteria.Subquery

whether the expression is a member of the collection. Parameters: values - collection of values to be tested ... ( Expression ... values) Create a predicate to test whether the expression is a member of the argument ... a predicate to test whether the expression is a member of the collection. Parameters: values - expression

Attribute.getJavaMember() - JPA Method

JPA Method in javax.persistence.metamodel.Attribute Member getJavaMember () Return the java.lang.reflect. Member for the represented attribute. Return: corresponding java.lang.reflect. Member Since: JPA 2.0

javax.persistence.metamodel.Attribute

which the attribute was declared. Return: declaring type Since: JPA 2.0 Member getJavaMember () Return the java.lang.reflect. Member for the represented attribute. Return: corresponding java.lang.reflect. Member

[ODB1] Chapter 3 - Persistent Classes

(even from a non persistent class), interface implementations, inner classes, etc. The class members

javax.jdo.FetchGroup

interface. A fetch group instance identifies the name of the class or interface, the list of members ... member . Fetch groups are updated using methods on this interface. An instance of a class implementing ... ) Add the members (fields or properties) of the named category to the set of members in

javax.jdo.annotations.Persistent

: Annotation Annotation for defining the persistence of a member . This corresponds to the xml elements ... "" Column name where the values are stored for this member . Since: JDO 2.1 Column [] columns default {} Column definition(s) for this member . Used for mapping multiple columns to the same member

javax.jdo.annotations.Persistent.name

of the member when this is embedded in another object. The fully-qualified member name is used. For example, "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class Line that is embedded in a member called line. Since: JDO 2.1

javax.jdo.annotations.PersistenceCapable

Persistent [] members default {} Member declarations. Annotations for persistent members of this class or interface can be specifed either here or on each member . Annotations for inherited members

FetchGroup.setRecursionDepth(memberName,recursionDepth) - JDO Method

;memberName,    int recursionDepth ) Set the recursion-depth for this member . The default is 1. A value of 0 means don't fetch the member (as if the member were omitted entirely). A value of -1 means fetch all instances reachable via this member . Parameters: memberName - the name

javax.jdo.annotations.Persistent.types

JDO Annotation Attribute in javax.jdo.annotations.Persistent Class[] types default {} Types of the member . Used when the declared member type is a supertype of the actual type that is stored in the member . For example, the declared member type might be an interface type that must contain an object of a concrete type when used for persistence. Since: JDO 2.1

javax.jdo.annotations.Persistent.persistenceModifier

on the member . One possible use for specifying persistenceModifier is for embedded instances in which a member is not persistent but in the non-embedded instances the member is persistent. Note that it is not portable to specify a member to be not persistent in the non-embedded case and persistent in the embedded usage. Since: JDO 2.1

FetchGroup.removeCategory(categoryName) - JDO Method

;categoryName ) Remove the members (fields or properties) of the named category from the set of members in this FetchGroup. This method first resolves the category name to a set of members and then removes the members as if removeMembers was called. After this method executes, the category is not remembered

FetchGroup.addCategory(categoryName) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup addCategory (   String categoryName ) Add the members (fields or properties) of the named category to the set of members in this FetchGroup. This method first resolves the category name to a set of members and then adds the members as

FetchGroup.addMember(memberName) - JDO Method

the member (field or property) to the set of members in this FetchGroup. Parameters: memberName - the name of a member to add to the FetchGroup Return: the FetchGroup Throws: JDOUserException - if the parameter is not a member of the persistent type JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2

FetchGroup.addMembers(memberNames) - JDO Method

) Add the member (field or property) to the set of members in this FetchGroup. Duplicates are ignored. Parameters: memberNames - the names of members to add to the FetchGroup Return: the FetchGroup Throws: JDOUserException - if any parameter is not a member of the persistent type JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2

javax.jdo.annotations.Serialized

JDO Annotation Serialized Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation on a member (field or property) to indicate that the member is stored serialized. Such a member cannot be queried using JDOQL. Corresponds to xml attribute "serialized" in "field

javax.jdo.annotations.Order

: Annotation Annotation for the ordering component of an ordered container member , such as Java Collections ... for ordering the elements of the member . Since: JDO 2.1 Column [] columns default {} The definition ... property in the target class that acts as the ordering field or property for this member . Return

FetchGroup.removeMembers(memberNames) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup removeMembers (   String... memberNames ) Remove the member (field or property) from the set of members in this FetchGroup. Duplicates in ... Throws: JDOUserException - if any parameter is not a member of the persistent type JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2

FetchGroup.removeMember(memberName) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup removeMember (   String memberName ) Remove the member (field or property) from the set of members in this FetchGroup. Return: the FetchGroup Throws: JDOUserException - if the parameter is not a member of the persistent type

FetchGroup.getMembers() - JDO Method

JDO Method in javax.jdo.FetchGroup Set getMembers () Return an immutable Set of String containing the names of all members . The Set is a copy of the currently defined members and will not change based on subsequent changes to the membership in the FetchGroup. Return: an immutable Set containing the names of all members in the FetchGroup Since: JDO 2.2

FetchGroup.getRecursionDepth(memberName) - JDO Method

JDO Method in javax.jdo.FetchGroup int getRecursionDepth (   String memberName ) Get the recursion-depth for this member . Parameters: memberName - the name of the field or property Return: the recursion-depth for this member Throws: JDOUserException - if the member is not in the FetchGroup Since: JDO 2.2