ObjectDB Database Search
1-50 of 115 resultsIndex 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 jpqlmember visiting in jpql | |
Persisting collection where members are subclassesPersisting 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 ... , HAVING, IN, INDEX, INNER, IS, JOIN, KEY, LEADING, LEFT, LENGTH, LIKE,LOCATE, LOWER, MAX, MEMBER , MIN | |
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 | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder 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 2.0 Predicate isMember ... whether an element is a member of a collection. If the collection is empty, the predicate will be false | |
Complex Schema Upgrade not working looked like this: class contact.Contact class customer.Customer extends contact.Contact class member . Member extends customer.Customer We have database records within each class type (Contact, Customer and Member ). Our new hierarchy looks like that: - The package " member " has been renamed to package | |
Composite indexes (...) } Here are my questions regarding composite indexes : #1. First of all - the first member in ... , then "room" which has 7-8 unique values etc...) #2. Can I use the same field as secondary member in many @Indexes? Something like that : @Index( members = { "lastModificationDate", "isPublished" }) @Index | |
com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV the exact cause. support Support The mapFormCli filed is a member of a number of composite indices ... ( members ={"mapToCli", "mapFromCli"}), @Index( members ={"mapToCli", "mapFromCli", "callDirection"}), @Index( members ={"startDate", "mapToCli", "mapFromCli"}),   | |
Date field Index is corrupted due to time change; @Index( members ={"startDate", "startTime", "channelNumber"}), @Index( members ={"startDate"}), @Index( members ={"startTime"}), @Index( members ={"startDate", "mapToCli | |
First query takes 4+ minutes to complete class in the DB. The class has data members that are basic Java types. Here is extract of the code ... ({ : // Indices building trees in client applications @Index( members ={"startDate", "toExtension"}), @Index( members ={"startDate", "fromExtension"}) }) public class RecordingMetaData { private Long id;  | |
InterfaceRef jakarta.persistence.criteria.Expression to test whether the expression is a member of the collection. Parameters: values - collection of values ... ( Expression ... values) Create a predicate to test whether the expression is a member of the argument ... whether the expression is a member of the collection. Parameters: values - expression corresponding to collection | |
InterfaceRef jakarta.persistence.criteria.ParameterExpression a predicate to test whether the expression is a member of the collection. Parameters: values ... whether the expression is a member of the argument list. Parameters: values - expressions to be tested ... ( Expression values) Create a predicate to test whether the expression is a member | |
InterfaceRef jakarta.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 | |
InterfaceRef jakarta.persistence.criteria.Subquery 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 | |
Attribute.getJavaMember() - JPA Method JPA Method in jakarta.persistence.metamodel.Attribute Member getJavaMember () Return the java.lang.reflect. Member for the represented attribute. Return: corresponding {@link java.lang.reflect. Member } Since: JPA 2.0 | |
InterfaceRef jakarta.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 {@link java.lang.reflect. Member } Since: JPA 2.0 Class getJavaType () Return the Java type of the represented attribute. Return | |
CriteriaBuilder.isNotMember(elem,collection) - JPA Method whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element collection - expression Return: is-not- member predicate Since: JPA 2.0 | |
CriteriaBuilder.isNotMember(elem,collection) - JPA Method whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Return: is-not- member predicate Since: JPA 2.0 | |
CriteriaBuilder.isMember(elem,collection) - JPA Method 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 2.0 | |
CriteriaBuilder.isMember(elem,collection) - JPA Method whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Return: is- member predicate Since: JPA 2.0 | |
EnumRef jakarta.persistence.EnumType of an enum instance with no EnumeratedValue field is the value of its Enum member . Since: JPA 1.0 ... with no EnumeratedValue field is the value of its Enum member . Since: JPA 1.0 Public Static Enum Methods | |
AnnotationRef jakarta.persistence.TableGenerator the members of the package TableGenerator annotation. Example 1: {@snippet | |
AnnotationRef jakarta.persistence.SequenceGenerator are determined by the members of the package SequenceGenerator annotation. Example: {@snippet : Since: JPA 1 | |
Expression | |
Expression | |
Expression | |
Expression | |
AnnotationRef jakarta.persistence.GeneratedValue of the strategy member . Since: JPA 1.0 GenerationType strategy default AUTO (Optional) The primary key | |
EnumConstRef jakarta.persistence.EnumType.STRING JPA Enum Constant in jakarta.persistence.EnumType STRING Persist enumerated type property or field as a string. The string value of an enum instance with no EnumeratedValue field is the value of its Enum member . Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.Convert.attributeName the converted attribute, this member must not be specified. (In this case the path relative | |
EnumConstRef jakarta.persistence.EnumType.ORDINAL JPA Enum Constant in jakarta.persistence.EnumType ORDINAL Persist enumerated type property or field as an integer. The ordinal value of an enum instance with no EnumeratedValue field is the value of its Enum member . Since: JPA 1.0 | |
AnnotationRef jakarta.persistence.Convert, this member must not be specified. (In this case the path relative to the annotated element is simply | |
AnnotationRef jakarta.persistence.NamedAttributeNode JPA Annotation NamedAttributeNode Implemented Interfaces: Annotation A NamedAttributeNode is a member element of a NamedEntityGraph . See Also: NamedEntityGraph NamedSubgraph Since: JPA 2.1 Public Annotation Attributes String keySubgraph default "" (Optional) If the attribute references a Map type | |
AnnotationAttrRef jakarta.persistence.GeneratedValue.generator provider supplies a default id generator, of a type compatible with the value of the strategy member . Since: JPA 1.0 | |
AnnotationRef jakarta.persistence.NamedSubgraph JPA Annotation NamedSubgraph Implemented Interfaces: Annotation A NamedSubgraph is a member element of a NamedEntityGraph . The NamedSubgraph is only referenced from within its containing NamedEntityGraph and cannot be referenced independently. It is referenced by its name from |