About map

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   ... jpa . Provider . class ) ;   Map jpa = MapBuilder. put ( ...

 
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. ... and log that information with JPQL string and parameters map to find and optimize the most ineffective cases. ...

 
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" #1 2012-03-14 01:19 In the code example below (also attached) I would like to understand why I am able to print to console a laz ...

 
forum_thread

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map<String, String>   thanks, Alex ... entity title = referenced entity name = Map<String, String>   thanks, Alex ...

 
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

javax.persistence.TypedQuery

Interface used to control the execution of typed queries.(Interface of JPA)

 
api-jpa

javax.persistence.PostUpdate

Is used to specify callback methods for the corresponding lifecycle event.(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

javax.persistence.ElementCollection

Defines a collection of instances of a basic type or embeddable class.(Annotation of JPA)

 
api-jpa

SqlResultSetMapping.entities

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