ObjectDB Database Search

1-50 of 53 results

jakarta.persistence.metamodel.ManagedType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel. ManagedType Type Parameters: - The represented type. Super Interfaces: Type Instances of the type ManagedType represent entity, mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods

JPA Metamodel API

, embeddable or mapped super classes): ManagedType type1 = metamodel. managedType (MyClass.class ... descendant interfaces of the Type interface: BasicType  - represents system defined types. ManagedType ... (); The ManagedType  interface adds methods for exploring managed fields and properties (which are referred

jakarta.persistence.metamodel.Metamodel.managedType(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel ManagedType managedType (    Class cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns

jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SingularAttribute getSingularAttribute (    String name ) Return the single-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SingularAttribute getDeclaredSingularAttribute (    String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name

jakarta.persistence.metamodel.ManagedType.getCollection(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType CollectionAttribute getCollection (    String name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType CollectionAttribute getDeclaredCollection (    String name ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name

jakarta.persistence.metamodel.ManagedType.getPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getPluralAttributes() Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Returns

jakarta.persistence.metamodel.ManagedType.getDeclaredPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getDeclaredPluralAttributes() Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multivalued

jakarta.persistence.metamodel.ManagedType.getAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Attribute getAttribute (    String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: attribute with given

jakarta.persistence.metamodel.ManagedType.getDeclaredAttribute(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Attribute getDeclaredAttribute (    String name ) Return the attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns

jakarta.persistence.metamodel.ManagedType.getMap(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType MapAttribute getMap (    String name ) Return the Map-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: MapAttribute

jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType MapAttribute getDeclaredMap (    String name ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getSet(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SetAttribute getSet (    String name ) Return the Set-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: SetAttribute

jakarta.persistence.metamodel.ManagedType.getDeclaredSet(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SetAttribute getDeclaredSet (    String name ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getList(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType ListAttribute getList (    String name ) Return the List-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns

jakarta.persistence.metamodel.ManagedType.getDeclaredList(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType ListAttribute getDeclaredList (    String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getSingularAttribute(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SingularAttribute getSingularAttribute (    String name ,    Class type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name

jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttribute(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SingularAttribute getDeclaredSingularAttribute (    String name ,    Class type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type

jakarta.persistence.metamodel.ManagedType.getSingularAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getSingularAttributes() Return the single-valued attributes of the managed type. Returns empty set if the managed type has no single-valued attributes. Returns: single-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getDeclaredSingularAttributes() Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes. Returns: declared single-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getAttributes() Return the attributes of the managed type. Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getDeclaredAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType Set getDeclaredAttributes() Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Returns: declared attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getList(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType ListAttribute getList (    String name ,    Class elementType ) Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name

jakarta.persistence.metamodel.ManagedType.getDeclaredList(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType ListAttribute getDeclaredList (    String name ,    Class elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type

jakarta.persistence.metamodel.ManagedType.getMap(String,Class,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType MapAttribute getMap (    String name ,    Class keyType ,    Class valueType ) Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key

jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String,Class,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType MapAttribute getDeclaredMap (    String name ,    Class keyType ,    Class valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name

jakarta.persistence.metamodel.ManagedType.getCollection(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType CollectionAttribute getCollection (    String name ,    Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type

jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType CollectionAttribute getDeclaredCollection (    String name ,    Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java

jakarta.persistence.metamodel.ManagedType.getSet(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SetAttribute getSet (    String name ,    Class elementType ) Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name

jakarta.persistence.metamodel.ManagedType.getDeclaredSet(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. ManagedType SetAttribute getDeclaredSet (    String name ,    Class elementType ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type

jakarta.persistence.metamodel.IdentifiableType

: - The represented entity or mapped superclass type. Super Interfaces: ManagedType , Type ... of the managed type that corresponds to the specified name. Inherited from ManagedType Parameters ... ManagedType Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.EntityType

: - The represented entity type. Super Interfaces: IdentifiableType , Bindable , ManagedType , Type ... that corresponds to the specified name. Inherited from ManagedType Parameters: name - the name ... getAttributes () Return the attributes of the managed type. Inherited from ManagedType Returns: attributes

jakarta.persistence.metamodel.EmbeddableType

: - The represented embeddable type. Super Interfaces: ManagedType , Type An instance ... to the specified name. Inherited from ManagedType Parameters: name - the name of the represented attribute ... the attributes of the managed type. Inherited from ManagedType Returns: attributes of the managed

jakarta.persistence.metamodel.MappedSuperclassType

Parameters: - The represented mapped superclass type Super Interfaces: IdentifiableType , ManagedType ... the attribute of the managed type that corresponds to the specified name. Inherited from ManagedType ... from ManagedType Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0

JPA Named Queries

Metamodel interface. For example: em. getMetamodel (). managedType (MyEntity.class); Following

jakarta.persistence.metamodel.Metamodel

managed types. Returns: the metamodel managed types. Since: Jakarta Persistence (JPA) 1.0 ManagedType managedType ( Class cls ) Return the metamodel managed type representing the entity, mapped

jakarta.persistence.metamodel.Attribute

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.Attribute Type Parameters: - The type of the represented attribute - The represented type that contains the attribute Represents an attribute of a Java type. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods ManagedType

jakarta.persistence.metamodel.ListAttribute

. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1.0 ManagedType

jakarta.persistence.metamodel.CollectionAttribute

Persistence (JPA) 1.0 ManagedType getDeclaringType () Return the managed type representing the type in

jakarta.persistence.metamodel.SetAttribute

from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1.0 ManagedType

jakarta.persistence.metamodel.SingularAttribute

. Since: Jakarta Persistence (JPA) 1.0 ManagedType getDeclaringType () Return the managed type

jakarta.persistence.metamodel.MapAttribute

. Since: Jakarta Persistence (JPA) 1.0 ManagedType getDeclaringType () Return the managed type

jakarta.persistence.metamodel.PluralAttribute

ManagedType getDeclaringType () Return the managed type representing the type in

jakarta.persistence.metamodel.Attribute.getDeclaringType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Attribute ManagedType getDeclaringType() Return the managed type representing the type in which the attribute was declared. Returns: declaring type. Since: Jakarta Persistence (JPA) 1.0

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.EntityTransaction et = em.getTransaction();   javax.persistence.metamodel. ManagedType type = em.getMetamodel(). managedType (Guest.class);   if ( type == null )     System.out.println( " ManagedType Guest not found"  );   // NamedQuery does not work   // TypedQuery query

Activation Issue

.class); metamodel.entity(E10.class); metamodel.entity(E11.class); Set managedTypes = metamodel.getManagedTypes(); System.out.println( managedTypes .size()); emf1.close(); } @Entity static class E1

Error with org.springframework.data.jpa.domain.AbstractPersistable

.objectdb.jpa.MetamodelImpl. managedType (MetamodelImpl.java:149) ... 53 more        

Retrieve data of all entity classes in a single query

I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel metamodel = em.getMetamodel(); Set allManagedTypes = metamodel.getManagedTypes(); for( ManagedType o

How to define Default Entity Listeners without persistence.xml and orm.xml

: annotatedClasses) { em.getMetamodel() . managedType (x); }   Thanks for any help   mgangat