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
Issue
17

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
Manual
17

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
Forum
16

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
16

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
Forum
16

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @Entity class A { ... } and other entities with references to A.   e.g. @Entity class B { A a; // explicit reference to A List list; // list of A's Set ... (@Entity and/or @Embedded) that include any reference to a specific Entity? You can try
Forum
16

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information
Manual
16

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