ObjectDB Database Search
101-150 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 | |
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 | |
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 | |
JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception.getAll", query="select g from guest.Guest g order ... .createQuery( "select g from guest.Guest g order by g.name", Guest.class); final List guests =  ... ; query="select g from guest.Guest g order by g.name | |
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 | |
Update is ignored by ObjectDB Hi! Sorry for my bad english skills. When I execute fulfilOrder, only Order entity is updated in ... ; @PersistenceContext(unitName = "SMShop") private EntityManager shopdb; ... public Order fulfilOrder(Long orderID, Long userID, int itemID) { Order order = shopdb.find( Order .class, orderID); if ( order == null) { User | |
IMK Stall with certain query(OrderData.class); Root order = query.from(OrderData.class); Predicate p1 = cb.like(cb.lower( order .get("buyerId")), param); Predicate p2 = cb.like(cb.lower( order .get("buyerName")), param); query.select( order ); query.where(cb.or(p1, p2)); List orders = DataBase | |
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 | |
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 | |
Listing large number of complicated objects with paging. with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 ... ("select prod from Product prod order by prod.id ASC", Product.class); prodList = icQuery ... order by prod.id ASC] 2011-11-15 19:30:59.578 [http-bio-8080-exec-3] DEBUG pl.hplxtool.dao.impl | |
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 | |
Need help to make this test work and define proper annotations for entities Lists; System.out.println(" order .name: "+ord.customer.name);   ... ; System.out.println("result. order .name: "+query.getResultList ... message: order .name: customer name Exception in thread "main" [ObjectDB 2.x] SELECT ord FROM == OrderF | |
Date field Index is corrupted due to time change move. ObjectDB organizes data in BTree structures. A BTree is always ordered by a key. The Doctor messages indicate that this order was broken in several BTrees (apparently BTrees that contain time based | |
Queries are slow on a large database; logTestRunId , then ordering the results may be the problem, since to return the first 25 objects, all the objects have to be retrieved. For diagnosis please try the same query without the ORDER BY clause ... can be the solution for this specific query, because results can be ordered by the index rather than by | |
Issue with alias Alexander Adam A result alias can only be used in the ORDER BY clause of the query (and after query execution in managing result elements using Tuple ). This is because the real order of query clauses is: FROM - WHERE - GROUP BY - HAVING - SELECT - ORDER BY and you cannot use an element before it is defined. support Support | |
Sorting problem with QueryData. There is a simple query with " order by" sentence: List prodList ... ; q = "select br from Branch br ORDER BY ?1 DESC";   ... = "select br from Branch br ORDER BY br.id DESC"; icQuery = em.createQuery(q, Branch.class | |
100% CPU when using multiple BETWEEN ((r.fromExtension BETWEEN '2010' AND '2099') OR (r.fromExtension BETWEEN '2001' AND '2002'))) ORDER ... ' AND '2099')) OR ((r.fromExtension BETWEEN '2010' AND '2099'))) ORDER BY r.startDate DESC, r.startTime ... Andonov We have to reproduce this in order to understand the bug and fix it. Could you share | |
Out of memory management changes - on order to verify that the new problems are caused by the new changes. support ... the same order as in our software that lead to Exception. I can't however reproduce this part of exception ... may be queries that return a lot of data, as well as queries that use GROUP BY and ORDER BY, in | |
Retrieve latest entry in a time-series; jshaffstall Jay Shaffstall The easiest solution is to order the results by date in descending order : SELECT FROM MyEntity e WHERE ... ORDER BY e.date DESC Then you can run | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$Case JPA Interface Case Super Interfaces: Expression , Selection , TupleElement Interface used to build general case expressions. Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression otherwise ( Expression result) Add an "else" clause | |
StoredProcedureQuery.getSingleResultOrNull() - JPA Method 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 was registered | |
InterfaceRef jakarta.persistence.criteria.Path the type resulting from the get operation in order to avoid the use of Path variables. For example | |
InterfaceRef jakarta.persistence.criteria.ListJoin an association or element collection for which an order column has been defined. Return: expression | |
ListJoin.index() - JPA Method for which an order column has been defined. Return: expression denoting the index Since: JPA 2.0 | |
AnnotationAttrRef jakarta.persistence.ConstructorResult.columns JPA Annotation Attribute in jakarta.persistence.ConstructorResult ColumnResult [] columns default null (Required) The mapping of columns in the SELECT list to the arguments of the intended constructor, in order . Since: JPA 2.1 | |
CriteriaBuilder.locate(x,pattern,from) - JPA Method is not found, 0 is returned. Warning: the order of the first two parameters of this method is reversed | |
CriteriaBuilder.locate(x,pattern,from) - JPA Method is returned. Warning: the order of the first two parameters of this method is reversed compared | |
CriteriaBuilder.locate(x,pattern) - JPA Method a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning: the order | |
CriteriaBuilder.locate(x,pattern) - JPA Method: the order of the parameters of this method is reversed compared to the corresponding function in JPQL | |
AnnotationAttrRef jakarta.persistence.Index.columnList JPA Annotation Attribute in jakarta.persistence.Index String columnList default null (Required) The columns included in the index, in order , following the BNF rule column_list given above. Since: JPA 2.1 | |
EntityManager.createStoredProcedureQuery(procedureName,resultSetMappings) - JPA Method must be specified in the order in which the result sets is returned by the stored procedure invocation | |
EntityManager.createStoredProcedureQuery(procedureName,resultClasses) - JPA Method the order in which the result sets will be returned by the stored procedure invocation. Parameters | |
AnnotationAttrRef jakarta.persistence.NamedStoredProcedureQuery.parameters JPA Annotation Attribute in jakarta.persistence.NamedStoredProcedureQuery StoredProcedureParameter [] parameters default {} 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. Since: JPA 2.1 | |
EntityManager.createNativeQuery(sqlString) - JPA Method if there is only one column in the select list.) Column values are returned in the order of their occurrence in | |
Issue with DISTINCT Select in various queries. Here's the stacktrace: Caused by: com.objectdb.o.UserException: Invalid order ... of a criteria query, so probably $3 in this case is an implicit variable. Invalid order expressions is a common ... in the ORDER BY expression. You didn't provide a query so it is impossible to say if the problem in | |
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 | |
Weird issue with variable naming is that we do a LEFT JOIN on an embedded property as well as ordering is involved in selection and order by. Removing the addition of order stuff solves the issue of double naming though doesn't help us without ordering . The issue is that the name of the root variable is $1 as well as the name | |
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 |