Home » Search

About ORDER BY

191-200 of 200Refresh
Tutorial
2

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 Started
Tutorial
2

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
JDO Doc
2

getServerDate()

Method javax.jdo.PersistenceManager Date getServerDate() Get the Date as seen by the server. Clients using this method can order their operations according to a single time source. Implementations ... on the server. Returns: a Date instance corresponding to the UTC Date as seen by the server Since: JDO 2.1
JPA Doc
2

javax.persistence.AttributeOverride

the name of the attribute that is being overridden by order to specify it as part of the map key or ... field or property to override a basic mapping or id mapping defined by the mapped superclass or
JPA Doc
2

javax.persistence.CacheRetrieveMode

property to specify the behavior when data is retrieved by the find methods and by queries. Since: JPA 2 ... ()) System.out.println(c) Returns: an array containing the constants of this enum type, in the order they are declared
JPA Doc
2

javax.persistence.FlushModeType

to the processing of the query. The persistence provider implementation may achieve this by flushing those entities to the database or by some other means. If FlushModeType.COMMIT is set, the effect ... ()) System.out.println(c) Returns: an array containing the constants of this enum type, in the order they are declared
Forum
2

Persist error @ManyToMany how to define correct entities relationships

; } } When adding Product as soon as a given category has been persisted already (by a previous product ... to get it working by using merge when commit fails on persist and using @Generated indexes for both entities ... and  @ManyToMany on Product in Order otherwise it went into objectdb internal error. Now everything is persisted
JPA Doc
2

javax.persistence.FieldResult

.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item, " + "FROM Order o, Item i " + "WHERE (order_quantity > 25) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping(name="OrderResults
JPA Doc
2

javax.persistence.SqlResultSetMapping

order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item, " + "i.name AS item_name, " + "FROM Order o, Item i " + "WHERE (order_quantity > 25) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping(name="OrderResults
JPA Doc
2

orderBy(o)

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery orderBy(   List<Order> o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any