About mapped

release

2.1.0

... Added support for serialization of inverse (mapped by) collection fields. Fixed some activations issues. ...

 
forum_thread

Possible issue for JPQL IS EMPTY expression

Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type  for operator IS EMPTY (error 756) Thanks. ... collection operators are currently not supported for mapped by (inverse) collections. Please see more details and a possible ...

 
release

2.1.1

... Added support for serialization of inverse (mapped by) collection fields. Fixed some activations issues. ...

 
manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query. The ability to retrieve managed entity objects is a major advantage of JPQL. For example, the following query returns Country objects that become managed by the EntityManager javax.persistence.EntityManager JPA interface Inte ...

 
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: ... the owner side only, it is usually fine, as the inverse (mapped by) side will be updated automatically when the object is retrieved (or ...

 
forum_thread

JPA 2.0 Criteria API: (When) Fully supported ?

An excerpt from the website of a 3rd party vendor which tries to support JPA 2.0:   "The primary difference between JPA 1.0 and JPA 2.0 implementations is how data is fetched: the JPA 1.0 implementation creates a JPQL query string for fetching while the JPA 2.0 implementation uses Criteria API.   Tested JPA 2.0 providers #1 2012-02-23 13:27 An excerpt from the website of a 3rd party vendor which tries to support JPA 2.0:   "The prim ...

 
issue

java.lang.NullPointerException during access a field, only if the classes enhanced

We get the following exception during access a field (Set of entities) The error occurs only if the entities are enhanced. ... special of the set of entites, the annotation have a 'mapped by' configuration. we found a 'workaround': we first ...

 
forum_thread

Is it possible to commit only specific elements?

Hello, As stated above, I would like to know if it is possible to commit only specific elements, or at least update a single table, disregarding the other entities loaded in the persistency context? I have a complex hierarchy of intertwined objects. Currently I am clearing my persistency context, retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've previously retrieved and finally committing. My context is big data and performance is an issue.      #1 2015-07-24 11:13 Hello, As stated above, I would like to know if it is possible to commit only specific elements, or at le ...

 
issue

ArrayIndexOutOfBounds with Critera API and function call

Hello, This is getting really frustrating sorry but we're close before delivering our app to our customer and went against a show-stopper again. We're building a simple query with the criteria api. What we have is something like (pseudo code) Bug Version: 1.04 Priority: High Status: Closed Replies: 3 Type:  Bug ...

 
forum_thread

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: #1 2014-04-22 07:57 Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expec ...