About mapped

31-40 of 200Refresh
Forum
18

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW ... manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3
Forum
18

Optimization of Map Queries

hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someOtherProperty .. ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someMoreProperties I need
Forum
17

Index on map key

Is there a way to create an Index with @Index on the key of a map? Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use a collection ... ();         Query query = em.createQuery(             "SELECT o FROM MyEntity o JOIN o.map e WHERE e.key
Manual
17

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Mapmap ... for instantiation of EntityManager that, like the factory, takes a map of properties as an argument
Manual
17

Retrieving JPA Entity Objects

collection and map persistent fields (i.e. through one-to-one and many-to-one relationships ... through non collection and map persistent fields are also retrieved. Theoretically, in some extreme ... ) private Employee manager; : } The default for non collection and map references is FetchType
Result
17

ObjectDB Object Database Features [2018-01-27]

elements are indexable (extremely fast JOIN queries). Map keys and values are indexable. Nested paths ... . Easy Learning Curve Easier than other JPA solutions - no need to learn and use O/R mapping. Easier ... to most developers. Friendly API JPA is very simple, except for mapping, which is irrelevant to ObjectDB
Result
17

ObjectDB Object Database Features [2018-10-27]

elements are indexable (extremely fast JOIN queries). Map keys and values are indexable. Nested paths ... . Easy Learning Curve Easier than other JPA solutions - no need to learn and use O/R mapping. Easier ... to most developers. Friendly API JPA is very simple, except for mapping, which is irrelevant to ObjectDB
Result
17

ObjectDB Object Database Features

(extremely fast JOIN queries). Map keys and values are indexable. Nested paths inside embedded objects ... than other JPA solutions - no need to learn and use O/R mapping. Easier to learn than other Object ... JPA is very simple, except for mapping, which is irrelevant to ObjectDB. Persistence is set using JPA
Issue
17

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch=FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok ... it to a db and re-loads it. The EntityManager is closed before accesing any fields. Finally the nested map
Forum
17

Extended mapping-definitions

The described feature is not available in any object-db I know, but possible with mapping ... its class) gets mapped to a java class. So cats get mapped to the java class 'Cat', dogs to 'Dog ... consequence I would get a huge main-table with the default-mapping, containing dogs and cats mixed