Internal Website Search

1-47 of 47 results

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

Metamodel.managedType(cls) - JPA Method

JPA Method in javax.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 Return: the metamodel managed

javax.persistence.metamodel.ManagedType

JPA Interface ManagedType Type Parameters: - The represented type. Super Interfaces: Type Instances of the type ManagedType represent entity, mapped superclass, and embeddable types. Since: JPA 2.0 Public Methods Attribute getAttribute (String name) Return the attribute of the managed type

ManagedType.getDeclaredSet(name) - JPA Method

JPA Method in javax.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 Return: declared

ManagedType.getDeclaredCollection(name) - JPA Method

JPA Method in javax.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 of the represented attribute

ManagedType.getSet(name) - JPA Method

JPA Method in javax.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 Return: SetAttribute of the given name

ManagedType.getCollection(name) - JPA Method

JPA Method in javax.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 Return

ManagedType.getSingularAttribute(name) - JPA Method

JPA Method in javax.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 Return: single

ManagedType.getDeclaredSingularAttribute(name) - JPA Method

JPA Method in javax.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 of the represented attribute

ManagedType.getDeclaredMap(name) - JPA Method

JPA Method in javax.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 Return: declared

ManagedType.getMap(name) - JPA Method

JPA Method in javax.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 Return: MapAttribute of the given name

ManagedType.getList(name) - JPA Method

JPA Method in javax.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 Return: ListAttribute of the given name

ManagedType.getDeclaredList(name) - JPA Method

JPA Method in javax.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 Return: declared

ManagedType.getDeclaredList(name,elementType) - JPA Method

JPA Method in javax.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. Parameters

ManagedType.getDeclaredSet(name,elementType) - JPA Method

JPA Method in javax.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. Parameters: name

ManagedType.getList(name,elementType) - JPA Method

JPA Method in javax.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 - the name

ManagedType.getSet(name,elementType) - JPA Method

JPA Method in javax.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 - the name

ManagedType.getCollection(name,elementType) - JPA Method

JPA Method in javax.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. Parameters

ManagedType.getDeclaredCollection(name,elementType) - JPA Method

JPA Method in javax.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 element

ManagedType.getDeclaredAttribute(name) - JPA Method

JPA Method in javax.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 Return: attribute with given name

ManagedType.getDeclaredPluralAttributes() - JPA Method

JPA Method in javax.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 multi-valued attributes. Return

ManagedType.getAttribute(name) - JPA Method

JPA Method in javax.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 Return: attribute with given name Throws

ManagedType.getPluralAttributes() - JPA Method

JPA Method in javax.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. Return: Collection-, Set-, List-, and Map-valued attributes Since: JPA 2.0

ManagedType.getMap(name,keyType,valueType) - JPA Method

JPA Method in javax.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

ManagedType.getDeclaredMap(name,keyType,valueType) - JPA Method

JPA Method in javax.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

ManagedType.getAttributes() - JPA Method

JPA Method in javax.persistence.metamodel. ManagedType Set getAttributes () Return the attributes of the managed type. Return: attributes of the managed type Since: JPA 2.0

ManagedType.getDeclaredSingularAttributes() - JPA Method

JPA Method in javax.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. Return: declared single-valued attributes Since: JPA 2.0

ManagedType.getSingularAttributes() - JPA Method

JPA Method in javax.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. Return: single-valued attributes Since: JPA 2.0

ManagedType.getSingularAttribute(name,type) - JPA Method

JPA Method in javax.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 - the name

ManagedType.getDeclaredSingularAttribute(name,type) - JPA Method

JPA Method in javax.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. Parameters

ManagedType.getDeclaredAttributes() - JPA Method

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

JPA Named Queries

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

javax.persistence.metamodel.EmbeddableType

: ManagedType , Type Instances of the type EmbeddableType represent embeddable types. Since: JPA 2.0 Public ... in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getAttributes () Return the attributes of the managed type. Return: attributes of the managed type Inherited from: ManagedType

javax.persistence.metamodel.IdentifiableType

. Super Interfaces: ManagedType , Type Instances of the type IdentifiableType represent entity or ... - if attribute of the given name is not present in the managed type Inherited from: ManagedType ... of the managed type Inherited from: ManagedType Since: JPA 2.0 CollectionAttribute getCollection (String

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

javax.persistence.metamodel.Metamodel

managed types. Return: the metamodel managed types Since: JPA 2.0 ManagedType managedType (Class  cls

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

javax.persistence.metamodel.MappedSuperclassType

JPA Interface MappedSuperclassType Type Parameters: - The represented entity type Super Interfaces: IdentifiableType , ManagedType , Type Instances of the type MappedSuperclassType represent mapped superclass types. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class  type

Attribute.getDeclaringType() - JPA Method

JPA Method in javax.persistence.metamodel.Attribute ManagedType getDeclaringType () Return the managed type representing the type in which the attribute was declared. Return: declaring type Since: JPA 2.0

javax.persistence.metamodel.Attribute

JPA Interface Attribute Type Parameters: - The represented type that contains the attribute - The type of the represented attribute Represents an attribute of a Java type. Since: JPA 2.0 Public Methods ManagedType getDeclaringType () Return the managed type representing the type in

javax.persistence.metamodel.EntityType

JPA Interface EntityType Type Parameters: - The represented entity type. Super Interfaces: Bindable , IdentifiableType , ManagedType , Type Instances of the type EntityType represent entity types. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class  type) Return the attribute

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

com.objectdb.o.InternalException: Unexpected internal exception

.userName = :userName" ) I execute the query as follows: em.getMetamodel(). managedType (Person.class

Spring 4 setup

.obtainType(MetamodelImpl.java:269) at com.objectdb.jpa.MetamodelImpl. managedType (MetamodelImpl.java:149

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

(). managedType (AbstractClientSummary.class); CJMoore Clinton Moore Good. So this feature request will be closed. support Support