About map

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)

 
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 ...

 
api-jpa

javax.persistence.criteria.Root

A root type in the from clause.(Interface of JPA)

 
issue

Issues with JDO Casting & Full Qualified Names

hi! See this query and the comments about failures. This is really urgent for us because as you've stated, this is the only workaround for now to proper casting AND map KEY access though it isn't working correctly either.. ... java. util . HashMap ; import java. util . Map ;   import javax. persistence . Embeddable ; ... static final class MyEntity { Map<String, EmbeddedBase> embeddeds = new HashMap<String, ...

 
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

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 ...

 
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 ...

 
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.Column

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

 
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)