Home » Search

About entities

71-80 of 200Refresh
Manual
18

Paths and Types in JPQL and Criteria API

Instances of user defined persistable classes (entity classes, mapped super classes and embeddable ... . For example - c.capital, where c represents a Country entity object uses the capital persistent field in the Country class to navigate to the associated Capital entity object. Path expression whose type
Result
17

Apache License, Version 2.0, January 2004

of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity
Manual
17

Literals in JPQL and Criteria Queries

. 'abc'), enum literals (e.g. mypackage.MyEnum.MY_VALUE) and entity type literals (e.g. Country). JPQL ... } Then example.ui.Color.RED is a valid literal in JPQL, but Color.RED is not. Entity Type Literals Entity type literals represent entity types in JPQL, similar to the way that java.lang.Class instances
Manual
16

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity objects into an EntityManager. Updating the relevant entity object fields within an active transaction ... an alternative way for updating entity objects. Unlike SELECT queries, which are used to retrieve data from
Issue
16

Removing of an entity removes also another entity type

Hello, we have following case: All entities must be enhanced, because see Issue #303. ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. The transaction starts
Forum
15

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities ... . But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic how we detect the existing EntityB instances they must be converted to the new Entity. With the same ID
Forum
15

Type ... is not defined as an entity (@Entity is missing) (error 302)

.epimss.lab.data.bacti.CultureRqst is not defined as an entity (@Entity is missing) (error 302) at com ... . The class definition looks fine (@PersistenceCapable and @Entity are equivalent - but you may try adding also @Entity). This might be a class loading issue - i.e. PersistenceCapable is available in
Manual
15

Auto Generated Values

for entity objects with no primary key fields defined (as explained in the previous section). The same ... @GeneratedValue with the AUTO strategy: @Entity public class EntityWithAutoId1 { @Id @GeneratedValue ... definition is equivalent: @Entity public class EntityWithAutoId2 { @Id @GeneratedValue long
Manual
15

DELETE Queries in JPA/JPQL

As explained in chapter 2, entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager. Removing these objects from the EntityManager within an active ... an alternative way for deleting entity objects. Unlike SELECT queries, which are used to retrieve data from
Manual
15

JPA Named Queries

is attached to exactly one entity class or mapped superclass - usually to the most relevant entity ... carefully to avoid collision (e.g. by using the unique entity name as a prefix). It makes sense to add the above @NamedQuery to the Country entity class: @Entity @NamedQuery(name="Country.findAll