Internal Website Search

1-33 of 33 results

JPA Metamodel API

: SingularAttribute id1 = entityType. getId (Long.class); // Gets a single ID attribute - excluding inherited: SingularAttribute id2 =   entityType. getDeclaredId (Long.class); // Checks ... the version attribute - excluding inherited: SingularAttribute v1 = entityType. getVersion (Long.class

javax.persistence.metamodel.SingularAttribute

JPA Interface SingularAttribute Type Parameters: - The type containing the represented attribute - The type of the represented attribute Super Interfaces: Attribute , Bindable Instances of the type SingularAttribute represents persistent single-valued properties or fields. Since: JPA 2.0 Public

SingularAttribute.isOptional() - JPA Method

JPA Method in javax.persistence.metamodel. SingularAttribute boolean isOptional () Can the attribute be null. Return: boolean indicating whether the attribute can be null Since: JPA 2.0

SingularAttribute.isId() - JPA Method

JPA Method in javax.persistence.metamodel. SingularAttribute boolean isId () Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class. Return: boolean indicating whether the attribute is an id Since: JPA 2.0

SingularAttribute.isVersion() - JPA Method

JPA Method in javax.persistence.metamodel. SingularAttribute boolean isVersion () Is the attribute a version attribute. Return: boolean indicating whether the attribute is a version attribute Since: JPA 2.0

SingularAttribute.getType() - JPA Method

JPA Method in javax.persistence.metamodel. SingularAttribute Type getType () Return the type that represents the type of the attribute. Return: type of attribute Since: JPA 2.0

javax.persistence.metamodel.IdentifiableType

SingularAttribute getDeclaredId (Class  type) Return the attribute that corresponds to the id ... the managed type Inherited from: ManagedType Since: JPA 2.0 SingularAttribute ... SingularAttribute getDeclaredSingularAttribute (String name, Class  type) Return the single

javax.persistence.criteria.From

Inherited from: FetchParent Since: JPA 2.0 Fetch fetch ( SingularAttribute  attribute) Create ... fetch ( SingularAttribute  attribute,  JoinType  jt) Create a fetch join ... attribute Inherited from: Path Since: JPA 2.0 Path get ( SingularAttribute  attribute) Create a path

javax.persistence.metamodel.MappedSuperclassType

superclass types. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class  type ... .0 SingularAttribute getDeclaredVersion (Class  type) Return the attribute that corresponds ... : IdentifiableType Since: JPA 2.0 SingularAttribute getId (Class  type) Return the attribute

javax.persistence.metamodel.EmbeddableType

SingularAttribute getDeclaredSingularAttribute (String name) Return the single-valued attribute declared ... : ManagedType Since: JPA 2.0 SingularAttribute getDeclaredSingularAttribute (String name, Class ... in the managed type Inherited from: ManagedType Since: JPA 2.0 SingularAttribute

javax.persistence.metamodel.ManagedType

- if attribute of the given name and type is not declared in the managed type Since: JPA 2.0 SingularAttribute ... - if attribute of the given name is not declared in the managed type Since: JPA 2.0 SingularAttribute ... type Since: JPA 2.0 SingularAttribute getSingularAttribute (String name) Return the single-valued

javax.persistence.metamodel.EntityType

. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class  type) Return the attribute ... SingularAttribute getDeclaredVersion (Class  type) Return the attribute that corresponds to the version ... Since: JPA 2.0 SingularAttribute getId (Class  type) Return the attribute that corresponds

javax.persistence.criteria.FetchParent

( SingularAttribute  attribute) Create a fetch join to the specified single-valued attribute using ... Fetch fetch ( SingularAttribute  attribute,  JoinType  jt) Create a fetch join

javax.persistence.criteria.Fetch

: the resulting join Inherited from: FetchParent Since: JPA 2.0 Fetch fetch ( SingularAttribute  attribute ... Fetch fetch ( SingularAttribute  attribute,  JoinType  jt) Create a fetch join

javax.persistence.criteria.Join

Inherited from: From Since: JPA 2.0 Join join ( SingularAttribute  attribute) Create an inner join ... : the resulting join Inherited from: From Since: JPA 2.0 Join join ( SingularAttribute  attribute, 

javax.persistence.criteria.CriteriaUpdate

: the modified update query Since: JPA 2.1 CriteriaUpdate set ( SingularAttribute  attribute,  ... ( SingularAttribute  attribute, X value) Update the value of the specified attribute

Path.get(attribute) - JPA Method

JPA Method in javax.persistence.criteria.Path Path get (    SingularAttribute  attribute ) Create a path corresponding to the referenced single-valued attribute. Parameters: attribute - single-valued attribute Return: path corresponding to the referenced attribute Since: JPA 2.0

From.join(attribute) - JPA Method

JPA Method in javax.persistence.criteria.From Join join (    SingularAttribute  attribute ) Create an inner join to the specified single-valued attribute. Parameters: attribute - target of the join Return: the resulting join Since: JPA 2.0

From.join(attribute,jt) - JPA Method

JPA Method in javax.persistence.criteria.From Join join (    SingularAttribute  attribute,     JoinType  jt ) Create a join to the specified single-valued attribute using the given join type. Parameters: attribute - target of the join jt - join type Return: the resulting join Since: JPA 2.0

FetchParent.fetch(attribute,jt) - JPA Method

JPA Method in javax.persistence.criteria.FetchParent Fetch fetch (    SingularAttribute  attribute,     JoinType  jt ) Create a fetch join to the specified single-valued attribute using the given join type. Parameters: attribute - target of the join jt - join type Return: the resulting fetch join Since: JPA 2.0

FetchParent.fetch(attribute) - JPA Method

JPA Method in javax.persistence.criteria.FetchParent Fetch fetch (    SingularAttribute  attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Parameters: attribute - target of the join Return: the resulting fetch join Since: JPA 2.0

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute  attribute,     Expression  value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute  attribute,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

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

javax.persistence.criteria.Path

get ( SingularAttribute  attribute) Create a path corresponding to the referenced single-valued attribute

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

IdentifiableType.getId(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getId (   Class  type ) Return the attribute that corresponds to the id attribute of the entity or mapped superclass. Parameters: type - the type of the represented id attribute Return: id attribute Throws

IdentifiableType.getDeclaredVersion(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getDeclaredVersion (   Class  type ) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared

IdentifiableType.getVersion(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getVersion (   Class  type ) Return the attribute that corresponds to the version attribute of the entity or mapped superclass. Parameters: type - the type of the represented version attribute Return

IdentifiableType.getDeclaredId(type) - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType SingularAttribute getDeclaredId (   Class  type ) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute

StaticMetamodel throws NPE with Spring-Data in PathImpl.get()

.get() where the parameter is a  SingularAttribute field from the generated class annotated by @StaticMetamodel. When i replace the  SingularAttribute with a simple String everything works like expected. BigMichi1