ObjectDB Database Search

151-200 of 200 results

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

TypedQuery implementation problems

on acct.accountGroupId = ag. id " + " left outer join AccountType at on at. id = ag.accountType" + " group ... . id , acct.accountCode, acct.name, acct.parentAccountId, " + "sum(case when att.amount 0 then att ... )" + " from Account acct" + " left outer join AccountTransaction att on acct. id = att.accountId" + " left

jakarta.persistence.EntityResult

. Example: Query q = em.createNativeQuery( "SELECT o. id , o.quantity, o.item, " + "i. id , i.name, i.description " + "FROM Order o, Item i " + "WHERE (o.quantity 25) AND (o.item = i. id )", "OrderItemResults

jakarta.persistence.OneToMany

_ ID ", nullable = false) public Customer getCustomer() { return customer; } Example 2: One-to-Many ... : @ManyToOne @JoinColumn(name = "CUST_ ID ", nullable = false) public Customer getCustomer() { return ... Customer class: @OneToMany(orphanRemoval = true) @JoinColumn(name = "CUST_ ID ") // join column is in

jakarta.persistence.criteria.AbstractQuery.getGroupRestriction()

Jakarta Persistence (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. Returns: having clause predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.having(Expression)

Jakarta Persistence (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

jakarta.persistence.criteria.AbstractQuery.having(Predicate...)

Jakarta Persistence (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

jakarta.persistence.criteria.AbstractQuery.having(List)

Jakarta Persistence (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

jakarta.persistence.criteria.Subquery.having(Expression)

Jakarta Persistence (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

jakarta.persistence.criteria.Subquery.having(Predicate...)

Jakarta Persistence (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

jakarta.persistence.criteria.Subquery.having(List)

Jakarta Persistence (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

jakarta.persistence.criteria.CriteriaQuery.having(Predicate...)

Jakarta Persistence (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

jakarta.persistence.criteria.CriteriaQuery.having(List)

Jakarta Persistence (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

jakarta.persistence.criteria.CriteriaQuery.having(Expression)

Jakarta Persistence (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

jakarta.persistence.metamodel.SingularAttribute.isId()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.SingularAttribute boolean isId() Is the attribute an id attribute? This method returns true if the attribute is a simple id , an embedded id , or an attribute of an id class . Returns: boolean indicating whether the attribute is an id . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.IdentifiableType.getId(Class)

SingularAttribute getId (    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 Returns: id attribute. Throws: IllegalArgumentException - if id attribute of the given type is not present in

jakarta.persistence.metamodel.IdentifiableType.getDeclaredId(Class)

SingularAttribute getDeclaredId (    Class type ) Return the attribute that corresponds to the id ... declared id attribute Returns: declared id attribute. Throws: IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.IdentifiableType.hasSingleIdAttribute()

hasSingleIdAttribute() Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id ; returns false for an idclass. Returns: boolean indicating whether the identifiable type has a single id attribute. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.getIdentifier(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil Object getIdentifier (    Object entity ) Return the id of the entity. A generated id is not guaranteed ... yet have an id . Parameters: entity - entity instance Returns: id of the entity. Throws

jakarta.persistence.JoinColumn

and the default values apply. Example: @ManyToOne @JoinColumn(name = "ADDR_ ID ") public Address getAddress ... Customer class @OneToMany @JoinColumn(name = "CUST_ ID ") // join column is in the table for Order

jakarta.persistence.MapKeyColumn

public class Item { @ Id int id ; ... @ElementCollection @MapKeyColumn(name = "IMAGE_NAME") @Column(name

jakarta.persistence.Embeddable

annotated Id or EmbeddedId . Fields or properties of an embeddable class are persistent by default ... PhoneServiceProvider { @ Id protected String name; ... } Example 3: @Embeddable public class Address { protected

jakarta.persistence.Transient

: @Entity public class Employee { @ Id int id ; @Transient User currentUser; ... } Since: Jakarta

jakarta.persistence.SecondaryTables

_DETAIL", pkJoinColumns = @PrimaryKeyJoinColumn(name = "EMPL_ ID ")), @SecondaryTable(name = "EMP_HIST", pkJoinColumns = @PrimaryKeyJoinColumn(name = "EMPLOYEE_ ID "))}) public class Employee

jakarta.persistence.SecondaryTable

(name = "CUST_DETAIL", pkJoinColumns = @PrimaryKeyJoinColumn(name = "CUST_ ID ")) public class Customer ... = "CUST_ ID "), @PrimaryKeyJoinColumn(name = "CUST_TYPE")}) public class Customer { ... } This annotation

jakarta.persistence.metamodel.IdentifiableType.getIdClassAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType Set getIdClassAttributes() Return the attributes corresponding to the id class of the identifiable type. Returns: id attributes. Throws: IllegalArgumentException - if the identifiable type does not have an id class. Since: Jakarta Persistence (JPA) 1.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

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

jakarta.persistence.metamodel.IdentifiableType.getIdType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType Type getIdType() Return the type that represents the type of the id . Returns: type of id . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.getVersion(Object)

yet have an id . Parameters: entity - entity instance Returns: id of the entity. Throws

jakarta.persistence.Converter

never applies to id attributes , version attributes , relationship attributes, or to attributes explicitly

jakarta.persistence.Entity

class must have at least one field or property annotated Id or EmbeddedId holding the primary key

jakarta.persistence.ElementCollection

Person { @ Id protected String ssn; protected String name; ... @ElementCollection protected Set

jakarta.persistence.UniqueConstraint

= @UniqueConstraint(columnNames = {"EMP_ ID ", "EMP_NAME"}) ) public class Employee { ... } Since: Jakarta

jakarta.persistence.CollectionTable

class Person { @ Id protected String ssn; protected String name; protected Address home

jakarta.persistence.PrimaryKeyJoinColumn

@Table(name = "VCUST") @DiscriminatorValue("VCUST") @PrimaryKeyJoinColumn(name = "CUST_ ID ") public

jakarta.persistence.Temporal

of these types. The Temporal annotation may be used in conjunction with the Basic annotation, the Id

jakarta.persistence.OrderColumn

column value for the first element is 0 . Example: @Entity public class CreditCard { @ Id long

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

Query on primary key is slow when using 'IN'

the JDK) import javax.persistence.Entity; import javax.persistence. Id ; import javax.persistence ... Serializable { @Serial private static final long serialVersionUID = -4357827914123980944L; @ Id private String productVariantOid; @ Id private String storeOid;     private ProductVariantStoreData

jakarta.persistence.TableGenerator.allocationSize

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator int allocationSize (Optional) The amount to increment by when allocating id numbers from the generator. Default: 50 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.table

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String table (Optional) Name of the table that stores the generated id values. Defaults to a name chosen by persistence provider. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key