ObjectDB Database Search

101-150 of 200 results

World database - Changing country ID

Sample world DB in ObjectDB Explorer - and couldn't find my country, as it has invalid id ( ez instead of cz ). I changed the id of country to "cz". But when I try to find the country: SELECT c FROM Country c WHERE id = "cz" no results are returned. If i find it by name, I can see ID has changed to cz

Create simple index for a Id field

{         @ Id     private Key key = null;     ... public class ObjectDbEntity implements DataItemProvider {        @ Id   ... why. Thanks in advance. Greatings ksii13 E As far as I know, the @ Id is indexed by default

@SequenceGenerator and single id in whole database

of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any ... values), and attaching these generators to @ Id fields in different classes. Make sure you set ... (name = "XXX", sequenceName = "Seq_XXX", initialValue = 1000) @GeneratedValue(generator = "XXX") @ Id

Newbie : How to return the auto-generated ID

ID when I persist a new entity (with @ Id @GeneratedValue annotations applied). I am following ... Deepak Mishra The id is available in the id field so you can simply access it. By default ... to have the id available earlier (immediately after persist ) - you have to switch to sequence or table  value generation strategy. support Support

Multiple @ID

I have an entity with 2 @ ID @Entity public class TheTable extends AbstractMMODataObject { @ Id String userId; @ Id long range; It was a mistake, I really should have just made  range an @Index but it already has millions of records in it. I am wondering if I query select t from  TheTable t where range

Explorer shows Long id, but should be Integer

Hi! I have seen a strange behavior of ObjectDB Explorer: it shows @ Id as being Long, not Integer ... used for one project. If I open one of the entities in the explorer, then I click on it's id (in the sample on parts of the Embedded id ) as if I would want to edit, then I press enter and ObjectDB

Possible issue for default id generator

First all, congratulations to Objectdb team for the excellent work. Possible issue for default id generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase ... and 36: @GeneratedValue(strategy=GenerationType.SEQUENCE)//, generator="seq") @ Id @SequenceGenerator

Problem with distinct select, order by and equivalent alias/attribute path

implements Serializable {     @ Id     private String id ;     ... ; }     public Location(String id , String town) {         this. id = id ;         this.town = town;    

JPQL keyword in entity - what to do?

.type.name, count(p. id )) from Product as p group by p.type.name I got this exception: com.objectdb.o ... new pl.hplxtool.model.ResultData(p.type.name, p.done, count(p. id )) from Product as p group by p.type ... name? Or do I have to change this field name and remember no to use words like from, group

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count( id )1) I dont know how to do this using JPQL, but I use ... names. so I do this: Query q2 = em.createQuery("select e.sUrl, e. id from URI e"); //  where id

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

JOIN $1.sender $3 WHERE ($2. id ='22afeafe-363f-4397-8553-cc5688ba142d') OR ($3. id ='22afeafe-363f-4397 ... JOIN $1.recipient $2 WHERE ($2. id ='22afeafe-363f-4397-8553-cc5688ba142d') ORDER BY MAX($1.createDate ... ; } @Override public String toString() { return "granat.dp.domain.entity.DialogItem[ id =" + getId

Eclipse plugin problem (using ObjectDB as a separate bundle)

during install to find required software - is enabled. support Support Hello, Make certain the Group items by ... categories. Uncheck the " Group items by category" - see nebula-cdtime.png attachement. 2. http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/ Select " Group items by category", then deselect

Gradle-Kotlin Code Contributions

projects. The following Tutorial Gradle-Kotlin looks okay to me so far: Ron plugins { id ("java") } group = "tutorial" version = "1.0 -SNAPSHOT" repositories { mavenCentral() } dependencies ... . Please post anything you think might be useful to me or anyone else.   plugins { id ("java

Persist error @ManyToMany how to define correct entities relationships

Category but they are all refering to same limited set of Category entities (via ID ). There is not changes made to Category from Product. The category ID is taken from the webservice Object ID (unique too). @Entity public class Product implements Serializable { @ Id @GeneratedValue private long id

Logical "or" works not correcly when field is @Id and first position

only, if the field for the "or" is the first one defined as @ Id . public class OrTest {      ... ;       }         @ Id ... ; @ Id         String b;       

strange object unique ID

at a customer the unique object id of one class changed dramatically from a nurmal number ... the first report of such an issue. Theoretically, this may be caused by a loop that allocates IDs ... , which seems to be functional, except that the automatic ID generator that is used for some

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

Please check the attached database file. When running the Doctor, I get   Global Value Errors ------------------- [1] Unexpected last index ID : -119 (expected -116) Page Content Errors ------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75

ClassRef jakarta.persistence.PersistenceConfiguration

of jakarta.validation.ValidatorFactory , Since: JPA 3.2 VALIDATION_ GROUP _PRE_PERSIST Target groups for validation at PrePersist . Since: JPA 3.2 VALIDATION_ GROUP _PRE_REMOVE Target groups for validation at PreRemove . Since: JPA 3.2 VALIDATION_ GROUP _PRE_UPDATE Target groups for validation at PreUpdate . Since: JPA 3.2

InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType

) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Return: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type is not declared in

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Return: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type

InterfaceRef jakarta.persistence.metamodel.EntityType

that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Return: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or

AbstractQuery.getGroupList() - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery List getGroupList () Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions Since: JPA 2.0

Unexpected exception (Error 990) on find

-------------------------- Group #1: Page#70606 3:'Elementarprodukt:400000100317025:7:1:' 1/2 1980+609/2589 Group #2: Page#138243 3:'Elementarprodukt:400000100417179:5:1:' 1/2 1980+396/2376 Group #3: Page#165140 3:'Elementarprodukt:400000100422048:13:1:' 1/2 1980+519/2499 Group #4: Page#74733 3:'Elementarprodukt

AnnotationRef jakarta.persistence.MapKeyJoinColumns

JPA Annotation MapKeyJoinColumns Target: METHOD, FIELD Implemented Interfaces: Annotation Supports composite map keys that reference entities. The MapKeyJoinColumns annotation groups ... and the referencedColumnName elements must be specified in each of the grouped MapKeyJoinColumn annotations

Blocked by find

I have a container object which wraps an objectdb database. There is a "putIfAbsent(String id , Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager ... { @ Id private String id ; @Index private String containerId; private String data; public DataHolder

AnnotationRef jakarta.persistence.NamedNativeQuery

, for example: @NamedNativeQuery( name = "findWidgets", query = "SELECT o. id , o.quantity, o.item " + "FROM Order o, Item i " + "WHERE (o.item = i. id ) AND (i.name = 'widget ... ;OrderItems", query = "SELECT o. id , o.quantity, o.item, i. id , i.name, i.description "

InterfaceRef jakarta.persistence.PersistenceUnitUtil

 entity) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not yet have an id . Parameters: entity - entity instance Return: id of the entity Throws: IllegalArgumentException - if the object

AbstractQuery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (   List  restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any

InterfaceRef jakarta.persistence.EntityManagerFactory

JPA Interface EntityManagerFactory Super Interfaces: AutoCloseable Interface used to interact with the persistence unit, and to create new instances of EntityManager . A persistence unit defines the set of all classes that are related or grouped by the application, and which must be colocated in

Subquery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery Subquery having (   Predicate... restrictions ) Specify restrictions over the groups of the subquery according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any

Subquery.having(restriction) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery Subquery having (    Expression  restriction ) Specify a restriction over the groups of the subquery. Replaces the previous having restriction(s), if any. This method only overrides the return type of the corresponding

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumns

JPA Annotation PrimaryKeyJoinColumns Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys. Example: ValuedCustomer subclass {@snippet : See Also: ForeignKey Since: JPA 1.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.SequenceGenerators

JPA Annotation SequenceGenerators Target: TYPE, METHOD, FIELD, PACKAGE Implemented Interfaces: Annotation Used to group SequenceGenerator annotations. See Also: SequenceGenerator Since: JPA 2.2 Public Annotation Attributes SequenceGenerator [] value default null Since: JPA 2.2

AnnotationRef jakarta.persistence.TableGenerators

JPA Annotation TableGenerators Target: TYPE, METHOD, FIELD, PACKAGE Implemented Interfaces: Annotation Used to group TableGenerator annotations. See Also: TableGenerator Since: JPA 2.2 Public Annotation Attributes TableGenerator [] value default null Since: JPA 2.2

AbstractQuery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (   Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously having added restriction(s

AbstractQuery.having(restriction) - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (    Expression  restriction ) Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any. Parameters: restriction - a simple or compound boolean expression Return: the modified query Since: JPA 2.0

AbstractQuery.getGroupRestriction() - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery Predicate getGroupRestriction () Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. Return: having clause predicate Since: JPA 2.0

CriteriaQuery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery having (   List  restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any

AnnotationRef jakarta.persistence.Converts

JPA Annotation Converts Target: METHOD, FIELD, TYPE Implemented Interfaces: Annotation Used to group Convert annotations. Multiple converters must not be applied to the same basic attribute. See Also: Convert Since: JPA 2.1 Public Annotation Attributes Convert [] value default null The Convert mappings that are to be applied. Since: JPA 2.1

Subquery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.Subquery Subquery having (   List  restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any

AnnotationRef jakarta.persistence.NamedEntityGraphs

JPA Annotation NamedEntityGraphs Target: TYPE Implemented Interfaces: Annotation Used to group NamedEntityGraph annotations. See Also: NamedEntityGraph Since: JPA 2.1 Public Annotation Attributes NamedEntityGraph [] value default null Since: JPA 2.1

AnnotationRef jakarta.persistence.JoinColumns

JPA Annotation JoinColumns Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies the mapping for composite foreign keys. This annotation groups JoinColumn annotations for the same relationship. Each JoinColumn annotation must explicit specify both name and referencedColumnName

CriteriaQuery.having(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery having (   Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s

CriteriaQuery.having(restriction) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery having (    Expression  restriction ) Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any. This method only overrides the return type of the corresponding

IdentifiableType.getId(type) - JPA Method

;Class  type ) Return the attribute that corresponds to the id attribute of the entity or mapped superclass. Parameters: type - the type of the represented id attribute Return: id attribute Throws: IllegalArgumentException - if id attribute of the given type is not present in the identifiable

IdentifiableType.getDeclaredId(type) - JPA Method

(   Class  type ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Return: declared id attribute Throws: IllegalArgumentException - if id attribute of the given type

combined index not used

.properties.name = 'scheduledSlot') GROUP BY a.endDate, a.objectsInCharge.nodePath, a.objectsInCharge ... retaining only results that satisfy: (v$3.name='scheduledSlot'). Step 6: Group results --------------------- Group the results of step 5 by: a.endDate,v$1.nodePath,v$3.doubleValue. Step 7: Apply

missing merger

indicates that parts of objects  have not been found during retrieval (in objects with IDs 9 ... database: Large Sections with Errors: Group #1: Page#5699973 2:'3835471f-1a5e-4c23-82c1-aac8f7b41f14' 1/2 1980+218/2198 Group #2: Page#5565011 2:'e33e869c-c6ea-467c-add8-38b53fb5d83e' 1/8 1980+1980

PersistenceUnitUtil.getIdentifier(entity) - JPA Method

 entity ) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not yet have an id . Parameters: entity - entity instance Return: id of the entity Throws: IllegalArgumentException - if the object is found not to be an entity Since: JPA 2.0

AnnotationRef jakarta.persistence.JoinTable

= "CUST_PHONE", joinColumns = @JoinColumn(name = "CUST_ ID ", referencedColumnName = " ID "), inverseJoinColumns = @JoinColumn(name = "PHONE_ ID ", referencedColumnName = " ID ")) This annotation may not be applied to a persistent field or property not annotated