About Entity

forum_thread

Issue with alias

Hi, This query works and correctly casts and selects my entity into the tuplet: SELECT $1, ((com.lexware.vereinsverwaltung.abrechnung.api.model.mitglied.MitgliedDebitorenKontoFragment)$1.qubletFRAGMENTMAP.get('com.lexware.vereinsverwaltung.abrechnung.api.model.mitglied.MitgliedDebitorenKontoFragment')) AS DEB FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $1 WHERE DEB.debitor=true however, trying to access "DEB" in the where clause causes an "unexpected token" error? Alex ... This query works and correctly casts and selects my entity into the tuplet: SELECT $1 , ( ( com . ...

 
forum_thread

Field level privileges

Hello , we are currently making new instant messenger but we were planing to use some security addons and privileges on access some of the fields on java side.   Can we give privileges to users , for example some users can only read some fields and some just can write java fields. Some users only allowed insert ability. Anonymous access only accesses some of the fields. ... users anyway. It is easy to manage application users as entity objects and use only minimal number of ObjectDB users (one or a few) to ...

 
issue

InternalException: null

Hi! when I run my application where 10 threads are concurrently accessing ObjectDB (only reading) via using ExecutorService, then these 2 mistakes are coming rapidly: 1. ... Caused by: com.objectdb.o._JdoObjectNotFoundException: Entity is not found: eu.extech.data.versioning.ProductVersionHistory#3669 at ...

 
tutorial

Getting Started with JPA

Getting started tutorial for step by step quick start with using Java Persistence API (JPA).... uses JPA to store and retrieve simple  Point entity objects, where each  Point has two persistent fields -  x ...

 
forum_thread

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List<A> aClasses; } Now, I want to fetch all B classes with all A classes skipping lazy loading: ... b JOIN FETCH b . aClasses After closing entity manager, B classes became detached but without A classes and because EM ...

 
api-jpa

javax.persistence.PostPersist

Is used to specify callback methods for the corresponding lifecycle event.(Annotation of JPA)

 
api-jpa

PersistenceUnit.unitName

(Optional) The name of the persistence unit as defined in the persistence.xml file.(Annotation Element of javax.persistence.PersistenceUnit)

 
api-jpa

javax.persistence.metamodel.Bindable

Instances of the type Bindable represent object or attribute types that can be bound into a Path.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.SingularAttribute

Instances of the type SingularAttribute represents persistent single-valued properties or fields.(Interface of JPA)

 
forum_thread

Cache configuration of database file pages, query programs, query results

Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. Cache of database file pages. Cache of query programs. Cache of query execution results. ... caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. ...