filmov
tv
TOP 150 Frequently asked Hibernate Interview Questions and Answers
Показать описание
150 Most frequently asked Hibernate Interview Questions and Answers
1 What is Hibernate Framework?
2 What is Java Persistence API (JPA)?
3 What is Hibernate Session Factory and how to configure it?
4 What is Hibernate Session and how to get it?
5 What is difference between openSession() and getCurrentSession() methods?
6 What is difference between Hibernate Session get() and load() methods?
7 What is hibernate caching? Explain Hibernate first level cache?
8 What are different states of an entity bean?
9 How to implement Joins() method in Hibernate?
`10 What is HQL and what are its benefits?
11 What is Query Cache in Hibernate?
12 Can we execute native SQL query in Hibernate?
13 What is the benefit of native SQL query support in Hibernate?
14 What is Named SQL Query?
15 What are the benefits of Named SQL Query?
16 What is the benefit of Hibernate Criteria API?
17 What is Hibernate Proxy and how does it help lazy loading?
18 How to implement relationships in Hibernate?
19 How does the transaction management work in Hibernate?
20 What is cascading and what are different types of cascading?
21 What is ORM?
22 What does ORM consist of?
23 What are the ORM levels?
24 Why do you need ORM tools like Hibernate?
25 What Does Hibernate Simplify?
26 What is the need for Hibernate XML mapping file?
27 What are the most common methods of Hibernate configuration?
28 What are the Core interfaces are of Hibernate framework?
29 What role does the Session interface play in Hibernate?
30 What role does the Session Factory interface play in Hibernate?
31 "What is the general flow of Hibernate communication with RDBMS?
32 What is Hibernate Query Language (HQL)?
33 How do you map Java Objects with Database tables?
34 What is the difference between and merge() and update()?
35 How do you define sequence generated primary key in Hibernate?
36 Define cascade and inverse option in one-many mapping.
37 What do you mean by Named – SQL query?
38 How do you invoke Stored Procedures?
39 Explain Criteria API.
40 Define Hibernate Template.
41 What are the benefits does Hibernate Template provide?
42 42) How do you switch between relational databases without code changes?
43 If we want to see the Hibernate generated SQL statements on console, what should we do?
44 What are derived properties?
45 What is component mapping in Hibernate?
46 What are the Collection types in Hibernate?
47 What are the ways to express joins in HQL?
48 How can Hibernate be configured to access an instance
variable directly and not through a setter method?
49 How can a whole class be mapped as immutable?
50 What is the use of dynamic-insert and dynamic-update attributes in a class mapping?
51 What do you mean by fetching strategy?
52 What is automatic dirty checking?
53 What is transactional write-behind?
54 What are Callback interfaces?
55 What are the types of Hibernate instance states?
56 What are the differences between EJB 3.0 & Hibernate?
57 What are the types of inheritance models in Hibernate?
58 Explain @UniqueConstraint and @Column Unique attribute.
59 Mention the ways of creating a SQL query in Hibernate.
60 Differentiate between @NotNull, @NotEmpty and @NotBlank.
61 What is JPA and how is Hibernate associated to JPA?
62 How does Hibernate help a programmer?
63 Explain high level architecture of the Hibernate framework.
64 Provide example of an Entity mapping with Hibernate.
65 How to indicate in Hibernate that a table will not be updated using the application?
66 How can a unique identifier be generated using Hibernate?
67 What is optimistic locking? How can you use it with Hibernate?
68 How do you implement single table per class hierarchy strategy in Hibernate?
69 How to implement table per class strategy in Hibernate?
70 How to specify a one to many unidirectional relationship in Hibernate?
71 How to specify a one-to-many bidirectional relationship in Hibernate?
72 How to implement pagination in Hibernate?
73 What is meant by a lazy association?
74 What is ‘N + 1 Selects’ Problem in Hibernate?
75 How to achieve automatic schema generation from Hibernate Mappings?
76 What is the use of the Schema Validator?
77 Explain lazy fetching in Hibernate.
79 How to Integrate Struts Spring in Hibernate?
80 How to prevent slate object updating in Hibernate?
81 What is version checking in Hibernate?
82 Explain the saveOrUpdate() method.
83 Explain the saveOrUpdate() method.
85 Differentiate between the Equal and Not Equal criteria query.
86 How does Value replacement in Message Resource Bundle actually work?
87 How to delete persistence objects?
88 How to set 2nd level cache in Hibernate with the EHCache?
89 How to get Hibernate statistics?
90 Explain Criteria Query Two Condition.
For more questions, visit:
1 What is Hibernate Framework?
2 What is Java Persistence API (JPA)?
3 What is Hibernate Session Factory and how to configure it?
4 What is Hibernate Session and how to get it?
5 What is difference between openSession() and getCurrentSession() methods?
6 What is difference between Hibernate Session get() and load() methods?
7 What is hibernate caching? Explain Hibernate first level cache?
8 What are different states of an entity bean?
9 How to implement Joins() method in Hibernate?
`10 What is HQL and what are its benefits?
11 What is Query Cache in Hibernate?
12 Can we execute native SQL query in Hibernate?
13 What is the benefit of native SQL query support in Hibernate?
14 What is Named SQL Query?
15 What are the benefits of Named SQL Query?
16 What is the benefit of Hibernate Criteria API?
17 What is Hibernate Proxy and how does it help lazy loading?
18 How to implement relationships in Hibernate?
19 How does the transaction management work in Hibernate?
20 What is cascading and what are different types of cascading?
21 What is ORM?
22 What does ORM consist of?
23 What are the ORM levels?
24 Why do you need ORM tools like Hibernate?
25 What Does Hibernate Simplify?
26 What is the need for Hibernate XML mapping file?
27 What are the most common methods of Hibernate configuration?
28 What are the Core interfaces are of Hibernate framework?
29 What role does the Session interface play in Hibernate?
30 What role does the Session Factory interface play in Hibernate?
31 "What is the general flow of Hibernate communication with RDBMS?
32 What is Hibernate Query Language (HQL)?
33 How do you map Java Objects with Database tables?
34 What is the difference between and merge() and update()?
35 How do you define sequence generated primary key in Hibernate?
36 Define cascade and inverse option in one-many mapping.
37 What do you mean by Named – SQL query?
38 How do you invoke Stored Procedures?
39 Explain Criteria API.
40 Define Hibernate Template.
41 What are the benefits does Hibernate Template provide?
42 42) How do you switch between relational databases without code changes?
43 If we want to see the Hibernate generated SQL statements on console, what should we do?
44 What are derived properties?
45 What is component mapping in Hibernate?
46 What are the Collection types in Hibernate?
47 What are the ways to express joins in HQL?
48 How can Hibernate be configured to access an instance
variable directly and not through a setter method?
49 How can a whole class be mapped as immutable?
50 What is the use of dynamic-insert and dynamic-update attributes in a class mapping?
51 What do you mean by fetching strategy?
52 What is automatic dirty checking?
53 What is transactional write-behind?
54 What are Callback interfaces?
55 What are the types of Hibernate instance states?
56 What are the differences between EJB 3.0 & Hibernate?
57 What are the types of inheritance models in Hibernate?
58 Explain @UniqueConstraint and @Column Unique attribute.
59 Mention the ways of creating a SQL query in Hibernate.
60 Differentiate between @NotNull, @NotEmpty and @NotBlank.
61 What is JPA and how is Hibernate associated to JPA?
62 How does Hibernate help a programmer?
63 Explain high level architecture of the Hibernate framework.
64 Provide example of an Entity mapping with Hibernate.
65 How to indicate in Hibernate that a table will not be updated using the application?
66 How can a unique identifier be generated using Hibernate?
67 What is optimistic locking? How can you use it with Hibernate?
68 How do you implement single table per class hierarchy strategy in Hibernate?
69 How to implement table per class strategy in Hibernate?
70 How to specify a one to many unidirectional relationship in Hibernate?
71 How to specify a one-to-many bidirectional relationship in Hibernate?
72 How to implement pagination in Hibernate?
73 What is meant by a lazy association?
74 What is ‘N + 1 Selects’ Problem in Hibernate?
75 How to achieve automatic schema generation from Hibernate Mappings?
76 What is the use of the Schema Validator?
77 Explain lazy fetching in Hibernate.
79 How to Integrate Struts Spring in Hibernate?
80 How to prevent slate object updating in Hibernate?
81 What is version checking in Hibernate?
82 Explain the saveOrUpdate() method.
83 Explain the saveOrUpdate() method.
85 Differentiate between the Equal and Not Equal criteria query.
86 How does Value replacement in Message Resource Bundle actually work?
87 How to delete persistence objects?
88 How to set 2nd level cache in Hibernate with the EHCache?
89 How to get Hibernate statistics?
90 Explain Criteria Query Two Condition.
For more questions, visit:
Комментарии