manning Hibernate in Action phần 10

Tham khảo tài liệu 'manning hibernate in action phần 10', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Development processes 349 Good ORM software comes bundled with a set of tools and so does Hibernate. In this chapter we ll discuss the Hibernate toolset. These tools can automatically generate mapping metadata SQL database schemas and even Java POJO source code. However you have to use the right tool for your specific development process. Development processes In some projects the development of a domain model is driven by developers analyzing the business domain in object-oriented terms. In others it s heavily influenced by an existing relational data model either a legacy database or a brand-new schema designed by a professional data modeler. Since different projects start from different points we need to consider different development scenarios and the different tools that may be used in each case. An overview of the tools and the artifacts they use as source and output is shown in figure . You may want to refer to this diagram while reading this chapter. NOTE Note that AndroMDA a tool that generates POJO source code from UML diagram files isn t strictly considered part of the common Hibernate toolset hence we don t discuss it in this chapter. See the community area on the Hibernate website for more information about the Hibernate modules in AndroMDA. Before we begin looking closely at any of the particular tools you can use with Hibernate we ll briefly survey the main scenarios and mention the tools that are most appropriate to each. UML Model XML XMI CodeGenerator hbm2java Middlegen Figure Input and output of the tools used for Hibernate development 350 CHAPTER 9 Using the toolset Top down In top-down development you start with an existing Java domain model ideally implemented with POJOs JavaBeans and complete freedom with respect to the database schema. You must create a mapping document either manually using a text editor recommended is an IDE with XML auto-completion or automatically using XDoclet and then let Hibernate s hbm2ddl tool .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.