Internal Website Search
91-100 of 200 resultsRefreshChanging existing objects from Entity to Embedded) in one of my JDO metadata files: <jdo> <package name ... a HashMap of another Entity. So as first try I changed only the metadata to this: metadata is not sufficient. Should it be sufficient btw ? So I left these classes NOT embedded | |
Detached Entity Objects#entity_object_life_cycle">state in which they are not managed by any api/java/jpa ... methods do not accept detached objects (e.g. api/java/jpa/EntityManager/lock_Object ... object) is constructed as a detached entity object since is not associated with any api | |
Query Parameters in JPA Country getCountryByName(api/java/jpa/EntityManager">EntityManager em, String name) { api/java/jpa/TypedQuery">TypedQuery<Country> query = em.api/java ... WHERE c.name = :name", Country.class); return query.api/java/jpa/TypedQuery/setParameter | |
Literals in JPQL and Criteria Queries specifying another name explicitly in the api/java/jpa/Entity">@Entity's api/java/jpa ... >api/java/jpa/criteria/CriteriaBuilder">CriteriaBuilder interface provides ... method, api/java/jpa/criteria/CriteriaBuilder/literal_T">literal, takes | |
GROUP BY and HAVING clauses> GROUP BY and HAVING in Criteria Queries The api/java/jpa/criteria ... ">criteria query API as follows: api/java/jpa/criteria/CriteriaQuery">CriteriaQuery<Country> q = cb.api/java/jpa/criteria/CriteriaBuilder | |
Deleting JPA Entity Objects the api/java/jpa/EntityManager/remove_Object">remove method or implicitly ... which way) and then in an active transaction, it can be deleted using the api/java/jpa ... employee = em.api/java/jpa/EntityManager/find_Class__Object">find(Employee.class, 1 | |
JPA Primary Key declaring a primary key field: api/java/jpa/Entity">@Entity public class Project { api/java/jpa/Id">@Id api/java/jpa/GeneratedValue">@GeneratedValue long id; // still set automatically : } The api | |
Collections in JPQL and Criteria Queries>api/java/jpa/criteria/CriteriaBuilder">CriteriaBuilder interface provides ... -java"> // Create path and parameter expressions: api/java/jpa/criteria/Expression">Expression<Collection<String>> languages = country.api/java/jpa/criteria | |
JPA Queries interfaces: api/java/jpa/queries" select="Query|TypedQuery"> The api">JPA Query API section (in chapter 4 ... and run JPQL queries. The api/java/jpa/TypedQuery">TypedQuery | |
Obtaining a JPA Database Connection In JPA a database connection is represented by the api/java/jpa ... an api/java/jpa/EntityTransaction">EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining an api/java/jpa/EntityManager |