About retrieve

forum_thread

Getting sales quantity per country with a query, an idea anyone?

Hi, For the purpose of some charts on a dashboard for our ERP i would like to get the list of countries and the sales quantity for each of them. I am pretty sure it is somehow possible to get that directly from a more or less complex query but i failed to find it; Does any have an idea? The entity (we call it OrderData) contains fields and other entities related to an order, fields we are interrested in are  buyerCountry and orderPrice. ... Possibly you may be able to retrieve that information using a GROUP BY query . ... anyone need to achieve the same. This call will retrieve a list of 3 dimensional Object array containing respectively ...

 
forum_thread

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: #1 2011-12-07 07:38 Hi! I've got a situation I do not understand. Assume code like this: @ Embedable public ...

 
forum_thread

Cascading persistence through an inverse field

Hi! I was playing with cascading persistence with @ManyToMany and inverse @ManyToMany fields, and I noticed that I can only get cascading persistence in one direction. If the "owner" of the relationship is persistent, then objects that are added to the relationship are automatically made persistent. However, I can not get this to work the other way around. I would also like the relationship owner to be persisted if a persisted object is added on the owner side. I have included a minimal example: #1 2017-10-08 15:50 Hi! I was playing with cascading persistence with @ManyToMany and inverse @ManyToMany fields, a ...

 
forum_thread

Post-compilation enhancement vs Automatic Run-time enhancement

We are getting massively different results on field loading between explicit post-compile enhancement and automatic run-time enhancement. Testing exactly where and when the results are different for our demo web app is a very time consuming task, and very difficult, it means testing literally 100s of user interfaces (noting we get different results OUTSIDE THE JAVA SERVER FACES BACKING BEAN LAYER depending on the enhancement stragegy). Can you please explain how this could possibly be so ? #1 2014-09-17 22:23 We are getting massively different results on field loading between explicit post-compile enhancement and automat ...

 
manual

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database. Modifying existing entity objects that are stored in the database is based on transparent persistence, which means that changes are detected and handled automatically. This page covers the following topics: Transparent ...

 
forum_thread

Exporting the data out of the ObjectDB

Hi, We are currently looking at ObjectDB for high performance / high volume transaction processing system. However we want to work on one of the aspects that is the data should be able to pulled out of the ObjectDB to some sort of Big Data File system or Relation DB for reporting / analytics purpose. ... is supported for most popular RDBMS), you can use JPA to retrieve entity objects from ObjectDB and then store them in the other data ... i will essentially have to write java module with JPA to retrieve entity and then using some kind of ORM or direct JDBC persist them to ...

 
manual

Running JPA Queries

Explains how to use JPA to run Java Persistence Query Language (JPQL) queries. The Query javax.persistence.Query JPA interface Interface used to control query execution. See JavaDoc Reference Page... interface defines two methods for running SELECT queries: Query.getSingleRes ...

 
release

2.2.6

Release date: 2011-06-02 Download (5.13 MB) Binary:  objectdb-2.2.6.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Is 2 level cache in use?

Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: ... primaryKey) , so you can persist or retrieve an entity object and then check if it is cached. The L2 cache ...

 
forum_thread

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections for identical members. Something like: "SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER OF :someCollection" Is something like this possible in the JPA spec? ... use some sort of hash function for the collections and to retrieve candidate collections by identical hash code. Candidate collections ...