Internal Website Search
51-100 of 200 resultsProblem with distinct select, order by and equivalent alias/attribute path when ordering the results of some projection when the order by expression is different (though logically ... ; + " order by s_location.id asc";   ... ; + " order by s.location.id asc";   | |
java.lang.NullPointerException when using ORDER BY == 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK ... am not sure if this problem is related to the other as the query works if you remove the order by ... which is used in the order by part, it always has a value. Anyway, we tried fixing the indices | |
Strange behaviour with ORDER BY and IN performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as ... if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter ... ("Locations without selection criterion in descending order ( by id): ");   | |
ORDER BY problem, when String starts with language specific character Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts with "normal/english" character, records are ordered correctly ... ORDER BY clause. However, if you have to sort a large result list - it might be more efficient | |
Cannot sort descending, when ordering by caluculated float in a method Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem ... this query: (I know, it's not very efficient...) select i from Invoice i order by i.getPrice() desc/asc ... ORDER BY i.getPrice() DESC"); List resultList = query | |
NULL prefered in ORDER BY? Hi! Is there a way to NOT prefer NULL in Order BY ? I.e. assume this: @Entity class Hint {   ... do something like SELECT FROM Test ORDER BY hint.name It orders ASC like this (assuming I've got ... supported. null values are smaller than any other value so they appear first in ordering | |
order by string with numbers The sql that works is ORDER BY CAST(SUBSTR(username FROM 4) AS UNSIGNED) ASC Using JPQL SELECT u FROM Users u ORDER BY SUBSTRING(u.username,4)*1 ASC If you have other alternative for JPA ... Hi Anyone could help me I need to order a string for example user1, user2, ..., user1000 I | |
How the sort order (in queries) works for non english letters? specify they locale as part of the index definition or the ORDER BY clause, so the sort uses ... (we are Czech company). How the sort order works for international (for us 'czech') letters? Does the ordering respects the national requirements? Thank you for clarification ... dmarko David Marko | |
Pre-detach loading: retrieval by navigation not working in if statement that can be referenced by ID, and meets a uniform and powerful IElement interface. - The BooleanValue is doing a heap ... to do it this way; but the wrapped boolean value is not the whole story. webel Dr Darren Kelly By JVM ... -Djava.compiler=NONE webel Dr Darren Kelly OK. It could still be an optimization that is used by the JVM | |
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 | |
Should derived fields of an EmbeddedId be manually maintained by app code?, of type ECompoundKeyMapItem, identified by their "key" within the EContainer class. The items ... "ECompoundKeyMapSubItem", identified by their keys. The embeddedId for the item class, ECompoundKeyMapItemId ... ] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.6.0_27 (on Windows Server 2008 6.0 | |
Grouping by date() with this issue. Query: select hour(ov.created), count(ov) from ObjectView ov group by hour(ov.created) order by ... have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... with new version. When you group by date() there are two days per day. I mean group by divides each day | |
A lot of ENT and SIV instances which are not cleared by GC and fixed (in build 2.6.1_01) a bug in cascading detach through mapped by to-many relationships ... the issue in order to explore it further. support Support Thanks, no exception now | |
Order.getExpression() - JPA Method JPA Method in javax.persistence.criteria. Order Expression getExpression () Return the expression that is used for ordering . Return: expression used for ordering Since: JPA 2.0 | |
Order.isAscending() - JPA Method JPA Method in javax.persistence.criteria. Order boolean isAscending () Whether ascending ordering is in effect. Return: boolean indicating whether ordering is ascending Since: JPA 2.0 | |
Strings in JPQL and Criteria Queries (for any c.name value). To match an actual underscore or percent character it has to be preceded by ... to ' UK' . TRIM(BOTH FROM ' UK ') is evaluated to 'UK' . By default, space characters are removed ... order to support optional arguments and when applicable simple Java objects as well as criteria expressions. | |
What are the main benefits of using ObjectDB? By using ObjectDB you can reduce development time and costs and improve your application ... fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack that ability and require multiple tables, multiple records and join operations in order to support | |
Alias not used in ORDER BY would have expected the alias to be used in the ORDER BY clause, something like SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY TEST However what I actually get as query string is SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY UPPER($1.someStringProperty) This doesn't | |
Retrieving JPA Entity Objects of entity classes and to keep them as simple as possible. Retrieval by Class and Primary Key Every entity object can be uniquely identified and retrieved by the combination of its class and its primary key ... method except that if the entity object is not already managed by the EntityManager a hollow object | |
Apache License, Version 2.0, January 2004 the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright ... and all other entities that control, are controlled by , or are under common control with that entity | |
Privacy Policy the Service. By using the Service, You agree to the collection and use of information in accordance ... files that are placed on Your computer, mobile device or any other device by a website, containing ... individuals employed by the Company to facilitate the Service, to provide the Service on behalf | |
JPA Persistable Types are represented in queries by entity names . By default, the entity name is the unqualified name ... can be set explicitly by using the name attribute of the Entity annotation: @Entity ( name ="MyName ... superclasses are treated by ObjectDB as ordinary entity classes. Mapped superclasses are really | |
javax.persistence.criteria.CriteriaQuery: AbstractQuery Since: JPA 2.0 List getOrderList () Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query. Return: the list of ordering expressions Since: JPA 2.0 Set getParameters () Return | |
Collation and String Order will affect the way strings are sorted in queries (with ORDER BY ). Currently strings are always ordered by Unicode order , and a workaround that enables controlling the order is to use normalizing, as ... feature. Many CRMs, DMS and other systems requires correct collation when using order by clause. +1 for this ... dmarko David Marko | |
Storing JPA Entity Objects New entity objects can be stored in the database either explicitly by invoking the persist method ... is committed. An IllegalArgumentException is thrown by persist if the argument is not an instance of an entity ... is thrown. The exception is thrown either by persist (if that existing entity object is currently | |
Detached Entity Objects Detached entity objects are objects in a special state in which they are not managed by any ... ). Retrieval by navigation from detached objects is not supported, so only persistent fields ... EntityManager . In addition, in JPA 2 we can detach an entity object by using the detach method: em. detach | |
Database Connection using JPA A connection to a database is represented by an EntityManager instance, which also provides ... . An EntityManagerFactory is constructed for a specific database, and by managing resources efficiently (e.g ... the content of a database require active transactions. Transactions are managed by an EntityTransaction | |
Comparison in JPQL and Criteria API its own notation (which is also in use by JDOQL, the JDO Query Language). ObjectDB supports both forms ... by these operators. Comparing NULL values The following table shows how NULL values are handled by ... IS NULL and IS NOT NULL operators which are provided by JPQL (and SQL): c.president IS NULL c.president | |
Working with JPA Entity Objects are provided in the Storing Entities section. Entity objects retrieved from the database by ... is detected by the owning EntityManager and the update is propagated to the database on transaction ... (except retrieval by refresh , which always requires accessing the database). The main role of the persistence | |
SELECT clause (JPQL / Criteria API), the following query returns Country objects that become managed by the EntityManager em : TypedQuery query ... in the results directly, but their content can be added to the SELECT clause by using a bound JOIN ... that are retrieved directly by a result path expression are not associated with an EntityManager and changes | |
Literals in JPQL and Criteria Queries literals (e.g. 077 , 077L ), a feature that is not currently supported by all JPA implementations. String ... single quotes (e.g. 'Adam' , '' ) and a single quote character in a string is represented by ... can be used (e.g. "Adam\'s" , "abcd\n1234" ) but this is not supported by all the JPA implementations | |
ObjectDB Website - Terms and Conditions of Use 1. Terms By accessing and using this web site, you agree to be bound by these web site Terms ... from using or accessing this site. The materials contained in this web site are protected by ... of these restrictions and may be terminated by ObjectDB Software at any time. Upon terminating your viewing | |
JPA Reference (JavaDoc) of these documentation pages is to serve as a reference. In order to learn how to use JPA and ObjectDB please read the ObjectDB manual . | |
ObjectDB License Agreement [ver. 2.0.4] Please read carefully this software license agreement. By downloading, installing or using ... of this agreement will be binding, unless in writing and signed by an authorized representative of each party ... authorized by this agreement. 3. The free edition of the Software includes restrictions on the number | |
JPA Persistence Unit is optional when using ObjectDB, but required by JPA. persistence.xml Persistence units are defined in ... A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu ... should be used. ObjectDB is represented by the com.objectdb.jpa.Provider string. If not specified, the first JPA | |
JPA Exceptions JPA exceptions are represented by a hierarchy of unchecked exceptions: java.lang.Object java.lang ... are represented directly by the PersistenceException class. Some specific errors are represented by ... transaction is represented by : Database update failures that require transaction rollback are represented by | |
Removed entities can be found by query in the same transaction Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute ... explanation on the change in build 2.7.4_04: ObjectDB uses snapshots in order to isolate transactions, i.e | |
Lazy loading of mapped by (inverse) singular references ObjectDB ignores lazy setting of non collection mapped by (inverse) fields and loads them always eagerly. This is allowed by JPA since lazy is only hint but it is not efficient. The reason ... immediately, at least as hollow objects. In order to instantiate referenced objects their exact type | |
javax.persistence.OrderBy element is not specified for an entity association, ordering by the primary key of the associated entity ... , the ordering will be by value of the basic objects and the property or field name is not used ... { ... @ManyToMany(mappedBy="students") @OrderBy // ordering by primary key is assumed public List | |
Database Transaction Replayer. Recording is enabled by default and can be disabled in the configuration . The ObjectDB Replayer tool ... is useful for two different purposes: It enables recovery from a database failure by replaying the recorded operations. It enables reproducing problems during debugging by repeating a failure. Backup | |
JPA Tutorials Tutorial Only basic Java experience is required in order to follow this tutorial. Web Application ... by step instructions on how to create the sample applications. In addition, the sample applications | |
javax.jdo.annotations.Order.columns JDO Annotation Attribute in javax.jdo.annotations. Order Column [] columns default {} The definition of the column(s) to use for ordering . Since: JDO 2.1 | |
javax.jdo.annotations.Order.mappedBy JDO Annotation Attribute in javax.jdo.annotations. Order String mappedBy default "" Name of a field or property in the target class that acts as the ordering field or property for this member. Return the name of the field or property in the target class Since: JDO 2.1 | |
javax.jdo.annotations.Order.column JDO Annotation Attribute in javax.jdo.annotations. Order String column default "" The name of the column to use for ordering the elements of the member. Since: JDO 2.1 | |
JDO Internal Callbacks The following interfaces can be implemented by persistence capable classes in order to response to JDO lifecycle events: | |
Report Generation with BIRT and JPA This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as simple as possible - we will use the basic points.odb ObjectDB database file from the Getting | |
Step 3: Add a Main Class In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste to replace the content of the Main class with the following content: package tutorial; import javax | |
Step 1: Install BIRT and ObjectDB Driver We start by installing the BIRT development environment and the ObjectDB data source driver ... IDE for Java EE Developers. Update your existing Eclipse IDE for Java EE Developers environment by ... an existing Eclipse IDE for Java EE Developers environment: Open the [Install] dialog box by | |
javax.jdo.Query more ordering declarations separated by commas. Each ordering declaration is the name of the field on which to order the results followed by one of the following words: " ascending " or " descending ... with a PersistenceManager . Multiple queries might be executed simultaneously by different threads, but the implementation | |
javax.jdo.PersistenceManager () Get the Date as seen by the server. Clients using this method can order their operations according ... the PersistenceManagerFactory (recommended) or by construction. Since: JDO 1.0 Public Methods void ... throws JDOUserException if the instance is transient or is managed by another PersistenceManager |