Unlike SQL, JPQL queries have automatic polymorphism, that is, each Entity request returns not only the objects of this Entity, but also objects of all its descendant classes, regardless of the inheritance strategy (for example, the select * from Animal query will return not only Animal objects, but also objects of Cat and Dog classes that are inherited from Animal). To eliminate this behavior, the TYPE function is used in the where condition (for example, select * from Animal a where TYPE (a) IN (Animal, Cat) will not return objects of the class Dog).
Posted Date:- 2021-11-08 17:42:15
What is the unique inheritance strategy in Hibernate, but not in the JPA specification?
What is JPQL (Java Persistence query language) and how is it different from SQL?
What is the difference between JPA and JDO?
What is the Spring data repository?
What is the Spring data repository?
What is the role of Entity Manager in JPA?
What are the two types of cache (cache) you know in JPA and what are they for?
What annotation can I manage JPA caching for this Entity?
What is the Basic annotation for?
How does the detach operation affect the Entity objects of each of the four statuses?
How does the refresh operation affect the Entity objects of each of the four statuses?
How does the operation merge affect the Entity objects of each of the four statuses?
How does the remove operation affect the Entity objects of each of the four statuses?
How does the operation persist on Entity objects of each of the four statuses?
What are the four lifecycle status of an Entity Instance’s Life Cycle you can list?
What is EntityManager and what are its main functions you can list?
What are the two types of fetch strategies in JPA do you know?
What is the difference between @Column and @Basic annotations in JPA?
What are the three types of Inheritance Mapping Strategies described in JPA?
What requirements does JPA set for Embeddable classes?
How can we enable Spring Data JPA features?
What is PlatformTransactionMangaer?
What data types are allowed in the attributes of the Entity class (fields or properties)?
What is the attribute of the Entity class in JPA terminology?
What are the properties of an entity ?
Why does JPA have a @Transient annotation?
What are the different types of entity mapping ?
In JPA EntityManager why use persist() over merge() ?
Define entity and name the different properties of an entity.
Can you name the different types of entity mapping.
What JPA requirements for Entity classes can you list (at least six requirements)?
Can Entity be an abstract class?
What is the difference between JPA and JDO?
What is the difference between JPA and JDO?
Is it possible to use JPA with noSQl databases?
What is the difference between JPA and Hibernate?
What is PagingAndSortingRepository?
How can we create a custom repository in Spring data JPA?
Why is an interface not a class?
What is the naming convention for finder methods in the Spring data repository interface?
What is the Spring data repository?