About retrieve

forum_thread

Issue with Casting / Joins

Hi I can't seem to find my way out of this. Basically what I have is something like: #1 2011-12-22 20:56 Hi I can't seem to find my way out of this. Basically what I have is something like: @ ...

 
forum_thread

ObjectDB CRUD Examples

Any place where I can find Netbeans examples for the basic create, read, update, delete methods using the EntityManager? i.e. public void create(Foo foo) {} public Foo read(Integer id) {} public List<Foo> read() {} public void update(Foo foo) {} public void delete(Foo foo) {} ... Yes, you have to run a query in order to retrieve all the instances of a class. You may use a criteria query ...

 
forum_thread

Restrict by class in query

I have the following bit of code: ... It is unclear what you want to retrieve ( Folder , Link , both?) and what you get in the result list ( ...

 
manual

JPA Named Queries

Explains how to define and how to run JPA named queries. A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the ...

 
issue

JPQL Update & Delete (JPA 1.0)

The JPQL (Java Persistence Query Language) supports updating and deleting database objects by queries. Currently ObjectDB supports only JPQL SELECT queries.Delete queries are supported for JDOQL (JDO Query Language). JPA Feature Version: Priority: High Status: Fixed Replies: 3 Type:  JPA Feature ...

 
issue

Unlimited JPA Persistable Types

I think it would be revolutionary if it were possible to persist any Java object, not just the standard SQL-based objects. Perhaps introducing an annotation will allow for this, something like @BasicType. The ability to store the state of an entire application would be a new innovative approach to persistence. For example, being able to persist: private Thread thread; Since ObjectDB is a proprietary database, surely this could be introduced by adding some sort of equals() override? Feature Request Version: 2.6.0 Priority: Normal Status: Active Replies: 2 Type:  Feature Request ...

 
forum_thread

Error when I switch to server mode

I was previously using embedded mode without any problem.  Today I tried to switch to server mode, and after connecting and doing some db operations I got this: #1 2011-01-26 08:31 I was previously using embedded mode without any problem.  Today I tried to switch to server mode, and after ...

 
forum_thread

Is there any faster select method?

SELECT: TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p WHERE p.id = " + element.getId(), Point.class); List<Point> points = query.getResultList();   WRITE: em.persist(p);   ** the Point class is of the tutorial.   I found the above select method is ten times slower than the write method, in my very simple benchmark. I guess the reason there is no SQL in the write method.   #1 2011-02-19 04:40 SELECT: TypedQuery<Point> query = em. createQuery ( "SELECT p FROM Point p WHERE ...

 
doc

Throwable(message)

Constructs a new throwable with the specified detail message.(Constructor of java.lang.Throwable)

 
issue

probable error in text of manual about embeddable classes

at http://www.objectdb.com/java/jpa/entity/types website in "Embeddable Classes" section there is a phrase "e.g. their instances cannot be shared by different entity objects" which seems to be wrong. Bug Version: 1.04 Priority: Normal Status: Closed Replies: 1 Type:  Bug ...