Home » Search

About mapping

31-40 of 200 Refresh
Manual
21

JPA Metamodel API

, mapped super classes) Set allManagedTypes = metamodel.getManagedTypes ... instance: // Get a managed type (entity, embeddable or mapped super classes): ManagedType ... . IdentifiableType is as a super interface of: MappedSuperclassType - represents user defined mapped
Manual
21

JPA Named Queries

is attached to exactly one entity class or mapped superclass - usually to the most relevant entity ... can be defined in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML mapping files, including the definition of named queries. But, because mapping files are useful
Forum
20

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
20

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
19

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
19

Database Connection using JPA

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

ObjectDB Object Database Features

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
Manual
19

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
Issue
19

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
18

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