`
Digger
  • 浏览: 33101 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
AVI
社区版块
存档分类
最新评论

常见面试问题整理

阅读更多
hibernate 面试题

1.在数据库中条件查询速度很慢的时候,如何优化?
 
2.在hibernate中进行多表查询,每个表中各取几个字段,也就是说查询出来的结果集并没有一个实体类与之对应,如何解决这个问题?

3. session.load()和session.get()的区别

4.Hibernate的主键生成机制

Answer Ref to http://developer.51cto.com/art/200906/129440.htm

5.十五道关于Hibernate的面试题 http://java.chinaitlab.com/Hibernate/785766.html

Q. How will you configure Hibernate?

Q. What is a SessionFactory? Is it a thread-safe object?

Q. What is a Session? Can you share a session object between different theads?


Q. What are the benefits of detached objects?

Q. What are the pros and cons of detached objects?

Q. How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?

Answers : http://www.javalobby.org/java/forums/t104442.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics