About mapped

forum_thread

Spring and packagesToScan

Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting Type XXX is not found   #1 2014-04-04 16:54 Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting ...

 
forum_thread

String representation of a query

Hi, Is it possible to get a JPQL string having a Query object instance? JpaQuery class doesn't have any method like "getQueryString" or "getDatabaseQuery", maybe it's going to be added in near future? It would be very helpfull to have something similiar to Hibernate etc : findAllBooks.unwrap(org.hibernate.Query.class).getQueryString() I would like to measure time of query execution and log that information with JPQL string and parameters map to find and optimize the most ineffective cases. #1 2012-12-18 10:29 Hi, Is it possible to get a JPQL string having a Query object instance? JpaQuery class doesn't have a ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... unmapped @OneToMany list is not still viewable, although a mapped @OneToMany list is, which I will discuss in another forum posting ] ...

 
api-jpa

OneToMany.cascade

(Optional) The operations that must be cascaded to the target of the association.(Annotation Element of javax.persistence.OneToMany)

 
api-jpa

EntityResult.fields

Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class.(Annotation Element of javax.persistence.EntityResult)

 
api-jpa

javax.persistence.FieldResult

Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class.(Annotation of JPA)

 
api-jpa

javax.persistence.NamedQueries

Specifies multiple named Java Persistence query language queries.(Annotation of JPA)

 
api-jpa

AssociationOverrides.value

(Required) The association override mappings that are to be applied to the relationship field or property .(Annotation Element of javax.persistence.AssociationOverrides)

 
api-jpa

SqlResultSetMapping.entities

Specifies the result set mapping to entities.(Annotation Element of javax.persistence.SqlResultSetMapping)

 
forum_thread

Failed to write the value of field using reflection (error 363) on LAZY fetch

Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member (e.g. a Modell has several Artikels) . When I remove the LAZY hint on the query execution it works. Any hints why this can happen? The Mapping of class Modell and its member: #1 2015-12-18 17:42 Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query whe ...