ObjectDB Database Search

1-42 of 42 results

Index Definition

multiple fields in the members attribute of the @Index or @Unique annotation: @Entity @Index ( members ... lastName; } When you specify indexed fields in the members attribute, you can attach the @Index or @Unique ... annotations with an @Indices annotation: @Entity @Indices ({ @Index ( members ={"lastName","firstName

Collections in JPQL and Criteria Queries

) returns the number of elements in the languages collection. [NOT] MEMBER [OF] The [NOT] MEMBER OF operator checks whether a specified element is a member of a specified persistent collection field. For example: 'English' MEMBER OF c.languages evaluates to TRUE if the languages collection contains

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

member visiting in jpql

member visiting in jpql

FROM clause (JPQL / Criteria API)

, c2 FROM Country c1, Country c2 WHERE c2 MEMBER OF c1.neighbors Multiple variables are equivalent ... , LOWER, MAX, MEMBER , MIN, MOD, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT

Logical Operators in JPQL and Criteria API

, isInEU); // Member of both UN and EU Predicate p2 = cb. or (isInOECD, isLarge); // Either OECD member

JPA Query Expressions (JPQL / Criteria)

: = , , = , IS [NOT] NULL , [NOT] BETWEEN Collection operators: [NOT] IN , IS [NOT] EMPTY , [NOT] MEMBER

jakarta.persistence.EnumType

/ordinal() member . Since: Jakarta Persistence (JPA) 1.0 STRING Persist enumerated type property or ... of its Enum.java.lang.Enum/name() member . Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static

jakarta.persistence.metamodel.Attribute.getJavaMember()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Attribute Member getJavaMember() Return the Member for the represented attribute. Returns: corresponding Member . Since: Jakarta Persistence (JPA) 1.0

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

jakarta.persistence.PostPersist

Elements This is a marker annotation with no members /elements. Additional JDK methods inherited from java

jakarta.persistence.PostLoad

PostLoad . Annotation Elements This is a marker annotation with no members /elements. Additional JDK methods

jakarta.persistence.Id

article explains how to use Id . Annotation Elements This is a marker annotation with no members

jakarta.persistence.GeneratedValue

supplies a default id generator, of a type compatible with the value of the strategy member

jakarta.persistence.Lob

with no members /elements. Additional JDK methods inherited from java.lang.annotation.Annotation annotationType(), equals(Object), hashCode(), toString()

jakarta.persistence.NamedAttributeNode

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedAttributeNode Implemented Interfaces: Annotation A NamedAttributeNode is a member element of a NamedEntityGraph . See Also: NamedEntityGraph NamedSubgraph Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String value

jakarta.persistence.MappedSuperclass

This is a marker annotation with no members /elements. Additional JDK methods inherited from java.lang.annotation

jakarta.persistence.Convert

of the map key class. When Convert directly annotates the converted attribute, this member must not

jakarta.persistence.Embedded

with no members /elements. Additional JDK methods inherited from java.lang.annotation.Annotation annotationType(), equals(Object), hashCode(), toString()

jakarta.persistence.Embeddable

how to use Embeddable . Annotation Elements This is a marker annotation with no members /elements

jakarta.persistence.EmbeddedId

how to use EmbeddedId . Annotation Elements This is a marker annotation with no members /elements

jakarta.persistence.ExcludeSuperclassListeners

. Annotation Elements This is a marker annotation with no members /elements. Additional JDK methods inherited

jakarta.persistence.ExcludeDefaultListeners

Elements This is a marker annotation with no members /elements. Additional JDK methods inherited from

jakarta.persistence.EnumeratedValue

(JPA) 3.2 Annotation Elements This is a marker annotation with no members /elements. Additional JDK

Date field Index is corrupted due to time change

;   @Index( members ={"startDate", "startTime", "channelNumber"}),         @Index( members ={"startDate"}),         @Index( members ={"startTime"}),         @Index( members ={"startDate", "mapToCli

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

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

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

Performance in SELECT statement

index on TestEntity instead: @Entity @Index( members ={"state.entityState"}) public class TestEntity

Composite Index error 328

= -1"), } ) @Indices( { @javax.jdo.annotations.Index( members = {"id","pwd","access"}) } ) public

Replication failed

Dear support members , I am trying to set up a replication url in objectdb.conf and have the the following error in the log files: [ObjectDB 2.3.4] javax.persistence.PersistenceException Failed to connect to server 127.0.0.1:6136 (Connection refused) (error 522) at com.objectdb.jpa.EMF

Performance issue in a query due to compareTo calls

= CascadeType.REMOVE) private Values valuesRef; }   @Index ( members = {"step.stepNumber"}) @Entity

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member , this query works, if I set id as @Id, it stops working and gives zero results

UserException: Package com.example.model is not found by the enhancer

entity object member variables rather than getters and setters. I think if you use the @Warning

ObjectDB 2.6.5

property method names . Fixed a bug in retrieving pure time values (java.sql.Time). Fixed a bug in MEMBER