ObjectDB Database Search
51-100 of 200 resultsJPA vs JDO - which is more efficient for OneToMany queries?
and be statically typed. For example: Assume there are Customers and Orders . with JDO I would do this: @PersistenceCapable class Customer { Vector orders ; } class Order { } Whereas with JPA I tend to do this: @Entity class Customer { } class Order { Customer customer; } So, with the JDO version
|
|
Persist error @ManyToMany how to define correct entities relationships
;@ManyToMany on Product in Order otherwise it went into objectdb internal error. Now everything is persisted ... Product(22,cat2); Product prod3 = new Product(32,cat1); Order ord1 = new Order (1,cust1,prod1); Order ord2 = new Order (2,cust2,prod2); Order ord3 = new Order (3,cust3,prod3); Order ord4 = new Order (4,cust1
|
|
jakarta.persistence.Index
::= column_name [ASC | DESC] If neither ASC nor DESC is not specified, ASC , that is, ascending order ... : "" Since: Jakarta Persistence (JPA) 1.0 String columnList (Required) The columns included in the index, in order
|
|
jakarta.persistence.JoinColumn
Customer class @OneToMany @JoinColumn(name = "CUST_ID") // join column is in the table for Order public Set getOrders() { return orders ; } See Also: ManyToOne OneToMany OneToOne JoinTable
|
|
jakarta.persistence.EntityResult
.description " + "FROM Order o, Item i " + "WHERE (o.quantity 25) AND (o.item = i.id)", "OrderItemResults ... .acme. Order .class), @EntityResult(entityClass = com.acme.Item.class) } ) See Also: SqlResultSetMapping
|
|
jakarta.persistence.criteria.ListJoin
the string-based API may need to specify the type resulting from the Path.get operation in order to avoid ... an association or element collection for which an order column has been defined. Returns: expression
|
|
jakarta.persistence.OrderBy.value
_name] [ASC | DESC] If ASC or DESC is not specified, ASC (ascending order ) is assumed. If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Default: "" Since: Jakarta Persistence (JPA) 1.0
|
|
Slow searching with two indexes
number of the most recent objects, like this: select from Thing where reference == :objectReference order ... == :objectReference order by id desc when an index is defined on the reference field should use that index and avoid a full scan. Does it run fast if the ORDER BY is removed? support Support I
|
|
How to convert a boolean to an int in the query?
the entity object - approveEmail, approvePhoneNumber, ... I can not sort them ORDER BY approveEmail ... ORDER BY (approveEmail + approvePhoneNumber + ... ) But I get an exception com.objectdb.o ... ORDER BY (m.approveEmail + m.approvePhoneNumber + ... + (count(likedPersons) 0)) galandor Orlov Sergey
|
|
Composite indexes
that is used in ORDER clause for query that returns the biggest result set? Or a field that returns ... "lastModificationDate" and "author" are used in ORDER clause in most of my queries. #3. As ... .filterDescription AND i.isPublished = true ORDER BY i.lastModificationDate Basing on this example
|
|
jakarta.persistence.OrderColumn.name
Jakarta Persistence (JPA) Method in jakarta.persistence.OrderColumn String name (Optional) The name of the ordering column. Defaults to the concatenation of the name of the referencing property or field; " _ "; " ORDER ". Default: "" Since: Jakarta Persistence (JPA) 1.0
|
|
Modifying something with Explorer -> app JPQL with Enum doesn't work anymore
the order of the values in the enum, i.e. by first using enum Type { BAD, GOOD } and then using enum ... . you must preserve the order of the values, since these ordinal numbers are stored in the database ... order of values in the enum all the way. support Support See also the warning (regarding using enum
|
|
jakarta.persistence.criteria.PluralJoin
the string-based API may need to specify the type resulting from the Path.get operation in order
|
|
jakarta.persistence.criteria.Path
the string-based API may need to specify the type resulting from the get operation in order to avoid
|
|
jakarta.persistence.criteria.MapJoin
-based API may need to specify the type resulting from the Path.get operation in order to avoid the use
|
|
jakarta.persistence.criteria.Root
the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb
|
|
jakarta.persistence.criteria.SetJoin
the string-based API may need to specify the type resulting from the Path.get operation in order to avoid
|
|
jakarta.persistence.criteria.CriteriaBuilder.Case
Jakarta Persistence (JPA) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta.persistence.criteria.CriteriaBuilder.Case Super Interfaces: Expression , Selection , TupleElement Interface used to build general case expressions. Case conditions are evaluated in the order in
|
|
jakarta.persistence.criteria.CollectionJoin
.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb.createQuery
|
|
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase
Jakarta Persistence (JPA) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta.persistence.criteria.CriteriaBuilder.SimpleCase Super Interfaces: Expression , Selection , TupleElement Interface used to build simple case expressions. Case conditions are evaluated in the order in
|
|
jakarta.persistence.criteria.From
may need to specify the type resulting from the Path.get operation in order to avoid the use of Path
|
|
jakarta.persistence.criteria.Join
the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb
|
|
jakarta.persistence.AttributeOverride
order to specify it as part of the map key or map value. To override mappings at multiple levels
|
|
jakarta.persistence.AssociationOverride
that is being overridden in order to specify it as part of the map value. If the relationship
|
|
jakarta.persistence.Column
public String getDescription() { return description; } Example 3: @Column(name = " ORDER _COST", updatable
|
|
No clue how to query with collection
Customer Entites and ORDER them by the first Address - Item (if any) in the collection ... INNER JOIN c.addresses ORDER BY SIZE(c.addresses) 0 ? CONCAT(c.addresses[0].street + c.addresses[1 ... this query: SELECT c, a FROM Customer INNER JOIN c.addresses a ORDER BY a.street WHERE a.active
|
|
Getting sales quantity per country with a query, an idea anyone?
(we call it OrderData) contains fields and other entities related to an order , fields ... of concerned countries (: with orders ) and finally a list of the order quantity per country ... containing respectively countries, quantity of orders and sum of orders , per country
|
|
Optimistic locking: prevent version increment on entity collection attribute
you for this. I will try it and will let you know. In the case of an order order line relationship, it makes sense for the version of the parent entity to be updated because order lines are an intrinsic part of the order . In the case of a document readers of that document, it makes less sense (in
|
|
persitencia (Preguntas y respuestas)
a table order by a field use an ORDER BY query. Query execution will be faster in the field ... other languages. support Support and what happens with the following records I'm adding, ordering in TableModel will automatically or have to rebuild an ORDER BY jrchalaco Roberto Pinto You can define
|
|
First query takes 4+ minutes to complete
with the following query: SELECT r from RecordingMetaData AS r ORDER BY r.startDate DESC, r.startTime DESC, r ... ", "startTime", "channelNumber"}) Start with a new empty database, in order to make sure that the new ... /JPQL. In our case the fields are in the ORDER part. So, I do not think an index will help
|
|
com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV
-8553-cc5688ba142d') ORDER BY MAX($1.createDate) DESC but this query returns an exception ... JOIN $1.recipient $2 WHERE ($2.id='22afeafe-363f-4397-8553-cc5688ba142d') ORDER BY MAX($1.createDate ... $1 JOIN $1.recipient $2 WHERE $2.id='22afeafe-363f-4397-8553-cc5688ba142d' ORDER BY MAX($1
|
|
jakarta.persistence.criteria.ListJoin.index()
element collection for which an order column has been defined. Returns: expression denoting the index. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.criteria.Path.get(String)
Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Path Path get ( String attributeName ) Create a path corresponding to the referenced attribute. Note: Applications using the string-based API may need to specify the type resulting from the Path.get operation in order
|
|
jakarta.persistence.StoredProcedureQuery.getResultList()
Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery List getResultList() Retrieve the list of results from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter
|
|
jakarta.persistence.StoredProcedureQuery.getSingleResult()
Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResult() Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter
|
|
jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()
Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResultOrNull() Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter
|
|
jakarta.persistence.Index.columnList
Jakarta Persistence (JPA) Method in jakarta.persistence.Index String columnList (Required) The columns included in the index, in order , following the BNF rule column_list given above. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.EntityManager.createStoredProcedureQuery(String,Class...)
must be specified in the order in which the result sets is returned by the stored procedure invocation
|
|
jakarta.persistence.EntityManager.createStoredProcedureQuery(String,String...)
must be specified in the order in which the result sets is returned by the stored procedure
|
|
jakarta.persistence.EntityManager.createNativeQuery(String)
if there is only one column in the select list.) Column values are returned in the order
|
|
jakarta.persistence.NamedStoredProcedureQuery.parameters
Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQuery StoredProcedureParameter[] parameters Information about all parameters of the stored procedure. Parameters must be specified in the order in which they occur in the parameter list of the stored procedure. Default: {} Since: Jakarta Persistence (JPA) 1.0
|
|
Problem persisting a TreeSet field
to have a well defined traversal order when iterating through the Set. Best regards, Benjamin ... are more limited. The order of elements in a mapped by (inverse) collection field is set by ... the automatic query to return ordered elements. Alternatively, you can use TreeSet with your order as
|
|
composite index not used in query
(remark: the order of the arguments in the query does not make any difference) ? hgzwicker Hans ... order to make the new index active. support Support stepping up with the complexity, the results ... Zwicker In all the new examples a composite index is used. Can you change the order of the fields in
|
|
Wrong data stored in time only fields
; System.out.println("LIST OF RECORDS IN REVERESE TIME ORDER - WRONG (note 2015.12.09)"); q = em.createQuery("SELECT r from DateTime AS r ORDER ... REVERESE TIME ORDER - CORRECT"); q = em.createQuery("SELECT r
|
|
Query performance in general
better with bigger page sizes (e.g. if an Entity has 'a lot' of member fields)? Order in WHERE clause of a query: so far we are not optimizing the order of conditions in the where clauses ... . The order of the expressions in a query should not affect performance. ObjectDB checks different orders
|
|
Replication error on slave restart
information about recording mode and replication in order to figure out how can I clean unused recording ... ; mastervoland Vladimir Sadovnikov In order to diagnose the problem ... ? stop GlassFish? stop the ObjectDB server? Check it first in your development environment in order
|
|
javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test
the objectdb.jar file that I fixed in order to make it a valid OSGi bundle. I have attached: 1) my bundle ... Neon.1, Bndtools 3.3.0). In order to build the code, you need to have lombok in the classpath (https ... in order to support e.g. Declarative Services and possibly provide EntityManagerFactory as
|
|
combined index not used
have to try different query plans by running them in the background in order to optimise and select best ... and work, but in order to offer a quick solution ObjectDB 2.7.6_01 was now released ... .parentNode.classIdentifier = "(ME)" order by o.parentNode.modified desc database can be downloaded
|
|
Strange Error with Criteria API and Sorting
We're creating a simple selection (distinct) including an order clause. When watching the created ... ($1)=class test.MyEntity)) ORDER BY UPPER($1.name) DESC You can see that in the order by ... .objectdb.o.UserException: Invalid order expression '$2' for distinct results at com.objectdb.o.MSG.d
|
|
Use temporary files to enable very large transactions
you for the test case. Build 2.6.3_05 includes some required fixes. In order to pass your test ... , in order to avoid retrieving obsolete content from the L2 cache. In your test the PKs are large (32 ... , but there is still a need to hold multiple versions for concurrent transactions in order to support MCC . support
|