ObjectDB Database Search

1-27 of 27 results

JPA Metamodel API

); // Get an entity type:   EntityType type2 = metamodel. entity (MyEntity.class);   ...  - represents user defined mapped super classes. EntityType  - represents user defined ... = entityType . getSupertype (); // Checks if the type has a single ID attribute: boolean hasSingleId

EntityManagerFactory.getNamedEntityGraphs(entityType) - JPA Method

JPA Method in jakarta.persistence.EntityManagerFactory Map getNamedEntityGraphs (   Class   entityType ) A map keyed by plain, containing every named plain whose entity type is assignable to the given Java type. Parameters: entityType - any Java type, including {@code Object.class

InterfaceRef jakarta.persistence.metamodel.EntityType

JPA Interface EntityType Type Parameters: - The represented entity type. Super Interfaces: Bindable , IdentifiableType , ManagedType , Type An instance of EntityType represents an plain type. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class  type) Return the attribute

EntityType.getName() - JPA Method

JPA Method in jakarta.persistence.metamodel. EntityType String getName () Return the entity name. Return: entity name Since: JPA 2.0

EntityManager getMetamodel() causes crash

(" EntityType : " +e.getName())); : ObjectDB returns with: Exception in thread "main" com.objectdb.o ... -one, Eg: Metamodel m = em.getMetamodel();     EntityType Point_ = m.entity(Point.class);   ... ().getEntities().forEach((e) - System.out.println(" EntityType : " +e.getName())); em.close(); emf.close

InterfaceRef jakarta.persistence.criteria.CriteriaDelete

2.1 Root from ( EntityType  entity) Create and add a query root corresponding to the entity ... ( EntityType  type) Create a subquery of the query. Parameters: type - the subquery result type

InterfaceRef jakarta.persistence.metamodel.Metamodel

an embeddable class Since: JPA 2.0 EntityType entity (Class  cls) Return the metamodel entity type ... entity type Throws: IllegalArgumentException - if not an entity Since: JPA 2.0 EntityType entity

InterfaceRef jakarta.persistence.EntityManagerFactory

of the persistence unit. Since: JPA 3.2 Map getNamedEntityGraphs (Class   entityType ) A map keyed by plain ... : entityType - any Java type, including {@code Object.class} meaning all entity graphs - the specified

InterfaceRef jakarta.persistence.criteria.From

- target of the join jt - join type Return: the resulting join Since: JPA 2.0 Join join ( EntityType ... representing the join target Return: the resulting join Since: JPA 3.2 Join join ( EntityType  

InterfaceRef jakarta.persistence.criteria.AbstractQuery

class Return: query root corresponding to the given entity Since: JPA 2.0 Root from ( EntityType ... ( EntityType  type) Create a subquery of the query. Parameters: type - the subquery result type

InterfaceRef jakarta.persistence.criteria.Join

Since: JPA 2.0 Join join ( EntityType  entity) Create and add an inner join to the given entity ... Inherited from: From Since: JPA 3.2 Join join ( EntityType  entity,  JoinType  joinType

InterfaceRef jakarta.persistence.criteria.CriteriaUpdate

to the given entity Since: JPA 2.1 Root from ( EntityType  entity) Create and add a query root ... Subquery subquery ( EntityType  type) Create a subquery of the query. Parameters: type

Duplicate Entity class names causes Exception in Query

  I tried adding an explicit inspection of the EntityType using the metamodel public IMapItem getMapItem(Integer cachedKey, EntityManager em) { Metamodel metamodel = em.getMetamodel(); EntityType

Metamodel.entity(cls) - JPA Method

JPA Method in jakarta.persistence.metamodel.Metamodel EntityType entity (   Class  cls ) Return the metamodel entity type representing the entity. Parameters: cls - the type of the represented entity Return: the metamodel entity type Throws: IllegalArgumentException - if not an entity Since: JPA 2.0

InterfaceRef jakarta.persistence.criteria.Root

JPA Interface Root Type Parameters: - the entity type referenced by the root Super Interfaces: FetchParent , From A root type in the from clause. Query roots always reference entities. Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Root . Public Methods EntityType

Root.getModel() - JPA Method

JPA Method in jakarta.persistence.criteria.Root EntityType getModel () Return the metamodel entity corresponding to the root. Return: metamodel entity corresponding to the root Since: JPA 2.0

CriteriaDelete.from(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaDelete Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the DELETE. A CriteriaDelete object has a single root, the entity that is being deleted. Parameters: entity

CommonAbstractCriteria.subquery(type) - JPA Method

JPA Method in jakarta.persistence.criteria.CommonAbstractCriteria Subquery subquery (    EntityType  type ) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Since: JPA 2.1

From.join(entity,joinType) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    EntityType  entity,     JoinType  joinType ) Create and add a join to the given entity. Parameters: entity - metamodel entity representing the join target joinType - join type Return: the resulting join Since: JPA 3.2

From.join(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    EntityType  entity ) Create and add an inner join to the given entity. Parameters: entity - metamodel entity representing the join target Return: the resulting join Since: JPA 3.2

InterfaceRef jakarta.persistence.criteria.CommonAbstractCriteria

subquery ( EntityType  type) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Since: JPA 2.1

AbstractQuery.from(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.AbstractQuery Root from (    EntityType  entity ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. Parameters: entity - metamodel entity representing the entity of type X

Metamodel.entity(entityName) - JPA Method

JPA Method in jakarta.persistence.metamodel.Metamodel EntityType entity (   String entityName ) Return the metamodel entity type representing the entity. Parameters: entityName - the name of the represented entity Return: the metamodel entity type Throws: IllegalArgumentException

InterfaceRef jakarta.persistence.criteria.Subquery

corresponding to the given entity Inherited from: AbstractQuery Since: JPA 2.0 Root from ( EntityType  

CriteriaUpdate.from(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaUpdate Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root, the entity that is being updated. Parameters: entity

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

from ( EntityType  entity) Create and add a query root corresponding to the given entity

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

hi, i currently try to use objectdb for a new project. i wanted to use it in combination with spring-data-jpa (M2), but i'm not able to use the automatic repository feature because the following code fails      EntityType type = metamodel.entity(domainClass);