Beginner
Hibernate easy to get started, master proficient I dare not boast. The first time I looked at the hibernate document, I felt a lot of difficulty, but not because hibernate was difficult to grasp, because hibernate documents are all about the experience and best practices of persistence layer design.
Hibernate documents accurately, most of the content is about the persistence layer of the object design, rather than simple hibernate use, use the problem to check Java doc is enough. So learning hibernate, mainly in the study of the persistence layer design patterns, if you have read the Hibernate document, but also all day will only mention those hibernate configuration problems, Hibernate class call problems, I think such people have no real entry, is white learning.
My hibernate of those configuration is not particularly skillful, every time write hbm, have to control a little bit of the document check; class call parameters are not too remember, write code also to Java doc at any time for reference.
But when I study hibernate, I concentrate all my energies to understand the principle of hibernate, and to concentrate on the principles and techniques that should be grasped in the persistence layer design, which is the most reusable thing for me. It is no exaggeration to say that after learning hibernate, I have also improved the programming of JDBC a large section, not to say that the architecture of Java-EE framework for the persistence layer of the frame design, is basically clear in the chest, even if the future of the API, do not hibernate, instead of Jdo,castor what, These experiences are as replicable.
Learning Hibernate is mainly not in learning Hibernat How to configure, with tools how to generate HBM files, if you focus on here, basically equal to the white learned hibernate. The essence of hibernate is unmatched dexterity in the design of the persistence layer, these persistence layer design experience will not be lost because you do not need to hibernate, I learn hibernate, has obviously felt that the persistence layer design capacity has been a lot of experience value, These experiences are not even available in Java, but also on. Net.
So hibernate configuration of learning, I just look, use the time to know where to check on the line, a bunch of complex generation tools I simply do not see, so calculate down, master hibernate configuration, you can use Hibernate to replace the JDBC write program, But spending 3 days is enough. I think 3 days is not a very extravagant study price for you. Why do I emphasize learning Hibernate's object persistence layer design idea? It depends on your dream to be a lifelong programmer? Or do you want to grow in a higher direction? From a purely technical point of view, the highest point of career development is "system architect", Bill Gates is not also known as Microsoft's chief System architect?
The system Architect position requires your learning and understanding skills, and if you cannot apply the design experience you have learned hibernate to other places, then you are failing and ineligible for system Architect.
Whether Jdo, Hibernate, TopLink, cocobase or Castor, or what TORQUE,OJB, software can be used and configured differently, but essentially ORM, which encapsulates the object persistence layer for JDBC, So same, if you learn and master hibernate for 1 months, then you should not study OJB more than 1 weeks, because you have the object persistence layer design is clear to the chest, all you need is to familiarize yourself with the OJB API and configuration, As for how to use OJB to carry out the development of the persistence layer, you are already familiar with it.
So when you have more than two Orm, you should be able to design the persistence layer for your project with the limitations of using ORM software, which is the level of system architect.
For example, in the case of Jin Yong's novels, Zhang Mowgli Learn Taiji sword, only mind, not mind sword strokes, this is the real master, and low hand will only learn sword strokes, and not to understand the sword behind the sword meaning, so life is low hand, can never really learn Taiji sword. So Zhang saw the second demonstration Taiji sword, the moves completely different thought is another set of things, in fact, the same. Learn hibernate also do not trifles to learn a variety of various tools, focusing on its object persistence layer design concept.