About map

manual

Query Parameters in JPA

Explains how to use parameters (named parameters and ordinal parameters) in JPA queries.... . DATE TemporalType.DATE enum constant Map as java.sql.Date See JavaDoc Reference Page... ) ; ... . Date TemporalType.DATE enum constant Map as java.sql.Date See JavaDoc Reference Page... represents a ...

 
api-jpa

javax.persistence.criteria.SetJoin

The SetJoin interface is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.Set.(Interface of JPA)

 
api-jpa

javax.persistence.criteria.CollectionJoin

The CollectionJoin interface is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.Collection.(Interface of JPA)

 
forum_thread

Apparent Lazy Loading issues.

Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two more. ... state: "When the collection is a java.util.Map, the cascade element and the orphanRemoval element apply to the map value." This appears to mean that if I have cascade=CascadeType.ALL on a ...

 
forum_thread

Internationalization

What would be a good way to implement internationalization with ObjectDB? Let's say we do have a product catalog and we need to provide category and product data internationally. With a relational database we most probably would have two tables, one for locale neutral information, i.e. Product with fields SKU, price, etc. and another one for locale information only, i.e. ProductLocale with fields name, description, etc. ... could use maps for the international members and provide a map entry for each locale, then we could call a method for example like getName("en") and it would return the map entry for the english product name, getName() without a locale would just ...

 
forum_thread

com.objectdb.o._RollbackException: Failed to commit transaction

Check the Exception below: (occurs sometimes, ObjectDB 2.3.6_14) ... According to the stack trace you may have a map whose one of its values is the map itself (or another map in a way that causes some sort of circular ...

 
api-jpa

javax.persistence.MapKeyTemporal

This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar.(Annotation of JPA)

 
api-jpa

javax.persistence.EntityListeners

Specifies the callback listener classes to be used for an entity or mapped superclass.(Annotation of JPA)

 
issue

Lazy retrieval by access not working correctly

I have a problem loading lazy associations by access/navigation with an @Embedded attribute containing an @ElementCollection which is lazy loaded.  I'm not sure if the same problem exists elsewhere.  Furthermore, if I set a breakpoint in the right spot in debug mode, everything works correctly.  Without the breakpoint, my lazy collection does not get loaded.  Here are code snippets which should reproduce the problem. ... // lazy loaded by default private Map<Locale, LocalizedValue> values ; ... }   @ ... code. getValues() returns a reference to the map, but should not load the map content. The content is loaded if you ...

 
api-jpa

javax.persistence.Column

Is used to specify the mapped column for a persistent property or field.(Annotation of JPA)