Internal Website Search

101-150 of 183 results

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; 

java.lang.NullPointerException when using ORDER BY

is also a Date member like r.startDateTime.   prolancer Emil Andonov As I was writing the previous ... the problem if a run a query where the ORDER BY filed is not a member of any index. It just happens that startDateTime is not a member of any index while startDate, callDirection and mapToCli are members

Strange behaviour with ORDER BY and IN

if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter on this member with a simple IN-clause. Filtering with IN-clause or ordering on another member (which is not ... both are done on the ID member .   Assuming this simple Entity class: @Entity public class Location

possible index required for improving query performance

Hi, I have the following entity class: @Entity @Table @Indices({ @Index( members ={"relationshipType", "party"}), @Index( members ={"relationshipType", "otherParty"}), @Index( members ={"relationshipType ... RelationshipType { PARENT, OWNER, ADMIN, CONTAINS, MEMBER , EMPLOYEE, MANAGER } private BaseObject party

"where in" query

- and the MEMBER OF operator doesn't seem to do what I want (although I may be using it incorrectly ... is in subqueries). The following code demonstrates how to use MEMBER OF with parameter for this purpose ... ;     "SELECT e.name FROM MyEntity e WHERE e.name MEMBER OF :names");   

Query over the keySet of a map field with collection parameter

" + EntityParent.class.getName() + " e " + "WHERE e.map member of ?1"; TypedQuery q = em.createQuery(query ... .value member of ?1 support Support I know this solution and this would also be also my first solution ... WHERE key member of ?1 Set params = new HashSet ( ) ; params . add ( "c2" ) ; q . setParameter ( 1 , params

composite index not used in query

we defined a composite index for class Action: @Index(name="ssst", members ={"startDate","state ... the composite index: @Index(name="ssst", members ={"state","subType","type", "startDate"}) or any ... less useful, unless  startDate is last. support Support the sequence of the index members is the key, thanks hgzwicker Hans-Georg Zwicker

How to apply Unique constraints on embedded fields?

A . Something like: @Entity @Unique( members ={"b.c.values"}) @Entity public class A {     private B b ... . but my requirement is something like this @Entity @Unique( members = { "b1.c.values", "b2.c.values ... These are my sample classes. @Entity @Unique( members = { "b1.c.values", "b2.c.values" }) public class

Error during cascaded merge

back. Here are the relevant parts of the involved Entity classes: @Entity @Indices({     @Index( members = {"lastPosition.receiveTime"}),     @Index( members = {"lastMovingPosition.receiveTime ... ;    return channelConfigurationSets;     } ... } @Entity @Index( members

JPA query of a Set of terms

WHERE si.term MEMBER OF :terms",     Page.class); query.setParameter("terms", terms ... = em.createQuery( "SELECT DISTINCT p FROM Page p " + "WHERE :t1 MEMBER OF p.terms AND :t2 MEMBER OF p

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections for identical members . Something like: SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER ... . This is easier and supported by JPA: SELECT o FROM MyClass o JOIN o.someCollection e WHERE e MEMBER

Multi part paths in a composite index must have the same length

( members ={"tStamp.value", "instrumentId"}) public class OBN implements Serializable{     ... index definition is invalid: @Entity @Index( members ={"lastName", "address.city"}) // INVALID public ... ;  @Entity     @Index( members ={"tStamp.value", "instrumentId"})    

query hint

none of these indices is in the log:   @Indices({  @Index(name="ctso", members ={"classIdentifier","type","state","objectNameUpper"}), @Index(name="lctso", members ={"linkedObjects.classIdentifier","linkedObjects.type","linkedObjects.state","linkedObjects.objectNameUpper"}), @Index(name="ln", members

LEFT JOIN FETCH over empty embedded collection returns no results

First of all, thank you for promptly implementing JOIN FETCH over nested paths in response to my inquiry a few months ago. However, I have run into one problem: if an embedded collection is empty, but I attempt to LEFT JOIN FETCH all the members of a collection within a (non-existent) member

Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception

the  Symbol class, which has a private non-static member named string but a few static members

New to Product & Having An Issue

;  I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code

Problem witch CriteriaBuilder isMember(..)

_08 which fixes an issue of using MEMBER with embedded objects. support Support great, it works ... has different members , but the same size.  List uid1_list = .. new Testclass(1,1), new Testclass(2,1

Searching lists within objects

attributeList = new ArrayList (); } @Entity @Unique( members ={"type","value"}) class Attribute {   ... enum (more efficient). An alternative solution is to use embedded objects: @Entity @Index( members

100% CPU when using multiple BETWEEN

Hi, we are evaluating ObjectDB 2.5.1_03 in embedded mode. We have a DB of about 2800 instances of a class that has two java.lang.String members : toExtension and fromExtension. There are other members in the class, but not relevant to the problem.   A query like this causes the java process

Failing to read entities under load in multithreaded tests

@Indices({ @Index( members ={"oidId", "type"}), @Index( members ={"parentAcl"}) }) public class TestEntity

Exception after update of indices of Entity class

( members = {"recurrence.recurringEvent"}),     @Index ( members = {"relations.related

Failed to write the value of field using reflection (error 363) on LAZY fetch

Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member ... hints? The Mapping of class Modell and its member : @Entity class Modell { ... @OneToMany(fetch

Internationalization

be necessary, instead we could use maps for the international members and provide a map entry for each ... -language members where for example the long description would be even stored as a rather long HTML code

can removing an entity throw an exception if the entity is in use?

A a, B b WHERE a = b.a OR a MEMBER OF b.list ... The query will have to be adjusted to your specific ... : SELECT DISTINCT b FROM B b WHERE :a = b.a OR :a MEMBER OF b.list ...   support Support

Expression.in(values) - JPA Method

JPA Method in javax.persistence.criteria.Expression Predicate in (    Expression  values ) Create a predicate to test whether the expression is a member of the collection. Parameters: values - expression corresponding to collection to be tested against Return: predicate testing for membership Since: JPA 2.0

Expression.in(values) - JPA Method

JPA Method in javax.persistence.criteria.Expression Predicate in (    Expression ... values ) Create a predicate to test whether the expression is a member of the argument list. Parameters: values - expressions to be tested against Return: predicate testing for membership Since: JPA 2.0

Expression.in(values) - JPA Method

JPA Method in javax.persistence.criteria.Expression Predicate in (   Object... values ) Create a predicate to test whether the expression is a member of the argument list. Parameters: values - values to be tested against Return: predicate testing for membership Since: JPA 2.0

javax.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

javax.persistence.NamedSubgraph

JPA Annotation NamedSubgraph Implemented Interfaces: Annotation A NamedSubgraph is a member element of a NamedEntityGraph . The NamedSubgraph is only referenced from within a NamedEntityGraph and can not be referenced independently. It is referenced by its name from a NamedAttributeNode element

Database is erased after deploying a new web application version

There's a static member in line 28, kind of a wrapper class to the database service class that does the queries

Nested Collection Query

Hi Sir,    I have a persisted field of the type:   List groupMembers   How do I check if a particular member exist in one of the group? snoopydoghk Ka Leung Nesting a collection directly in another collection, although supported by ObjectDB, is not valid in JPA. Accordingly

Problem with @UniqueConstraint

/java/jpa/entity/index For example: @Unique ( members ={"lastName","firstName"}) And for a single

Navigation and Parameters

Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a parameter, can I navigate to those objects' fields ? E.g.: SELECT x FROM ClassX x WHERE x.a IS MEMBER OF :y.b Thank You ! geekox86 Mohannad AlAwad You cannot navigate from a collection of objects

Query can't see recently persisted object

( { @Index( name = "MyClass_ind_1", members = { "oid" }, unique = "true" ) } ) @Entity public class

Unexpected query token - AS

WHERE ( artifactActivatedGoals MEMBER OF ?1 OR artifactActivatedAssumptions MEMBER OF ?1 OR artifactActivatedCalibrations MEMBER OF ?1 ) AND artifact MEMBER OF instanceEntryArtifactSet.artifacts  

Problem using "and" for joined entities and indexed fields

({         @Index( members = {"children.name"}),         @Index( members = {"children.age"})     })   ... , which is much more efficient for the third query: @Index( members = { "children.name", "children.age" }) (with or

NullPointerException: Cannot invoke "com.objectdb.o.RFV.S()" because "" is null

;  @Indices({         @Index( members = {"children.name"}),         @Index( members = {"children.age"})   

New issues with queries using build 2.7.6_08

.execution.ExecutionConfigImpl as config WHERE execution MEMBER OF ?1 AND execution.verdictID = verdict.uid ... .dmos.execution.ExecutionConfigImpl as config WHERE config.uid = '23A' AND execution MEMBER OF ?1

javax.jdo.FetchGroup.BASIC

JDO Static Field in javax.jdo.FetchGroup BASIC For use with addCategory and removeCategory calls. This category includes members of all primitive and immutable object class types as defined in section 6.4 of the specification, including String, Locale, Currency, BigDecimal, and BigInteger; as

javax.jdo.FetchGroup.RELATIONSHIP

JDO Static Field in javax.jdo.FetchGroup RELATIONSHIP For use with addCategory and removeCategory calls. This category includes members of all relationship types. Since: JDO 2.2

javax.jdo.FetchGroup.MULTIVALUED

JDO Static Field in javax.jdo.FetchGroup MULTIVALUED For use with addCategory and removeCategory calls. This category includes members of all multi-valued types, including Collection, array, and Map types of basic and relationship types. Since: JDO 2.2

PersistenceManagerFactory.getFetchGroup(cls,name) - JDO Method

its definition to a new FetchGroup . If the FetchGroup does not already exist, create it with no members

javax.jdo.annotations.Inheritance.strategy

JDO Annotation Attribute in javax.jdo.annotations.Inheritance InheritanceStrategy strategy default InheritanceStrategy.UNSPECIFIED Strategy to use for inheritance. Specifies in which table(s) the members for the class are stored. Since: JDO 2.1

javax.jdo.annotations.Inheritance

for inheritance. Specifies in which table(s) the members for the class are stored. Since: JDO 2.1

javax.jdo.annotations.Embedded.ownerMember

JDO Annotation Attribute in javax.jdo.annotations.Embedded String ownerMember default "" The member in the embedded object that links back to the owning object where it has a bidirectional relationship. Since: JDO 2.1

javax.jdo.PersistenceManager

it with no members . The FetchGroup immediately becomes active and in scope of the PersistenceManager, and hides