About mapped superclass

41-50 of 200Refresh
JPA Doc
11

javax.persistence.MappedSuperclass

information is applied to the entities that inherit from it. A mapped superclass has no separate table ... for the mapped superclass itself. When applied to the subclasses the inherited mappings will apply in ... : Concrete class as a mapped superclass @MappedSuperclass public class Employee
JPA Doc
11

javax.persistence.PrimaryKeyJoinColumn

of the superclass (JOINED mapping strategy); the same name as the primary key column of the primary table ... of the primary table of the superclass (JOINED mapping strategy); the same name as the primary key column ... . It is used to join the primary table of an entity subclass in the JOINED mapping strategy
JPA Doc
9

javax.persistence.metamodel.ManagedType

represent entity, mapped superclass, and embeddable types. Since: JPA 2.0 Attribute getAttribute ... in the managed type Since: JPA 2.0 MapAttribute getDeclaredMap(String name) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Return the Map
JPA Doc
8

javax.persistence.metamodel.Type.PersistenceType

Since: JPA 2.0 PersistenceType ENTITY Entity Entity Since: JPA 2.0 PersistenceType MAPPED_SUPERCLASS Mapped superclass Mapped superclass Since: JPA 2.0 PersistenceType valueOf(String name) Returns
Forum
8

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
8

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
8

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

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
7

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

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah ... , go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. So my performance issue ... . Please check build 2.6.2_08 that should fix this issue. Some information about this issue: The mapped by