Đang chuẩn bị liên kết để tải về tài liệu:
manning Hibernate in Action phần 4

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo tài liệu 'manning hibernate in action phần 4', 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ả | Defining the mapping metadata 83 However a better way to handle this kind of requirement is to use the concept of an SQL schema a kind of namespace . SQL schemas You can specify a default schema using the hibernate.default_schema configuration option. Alternatively you can specify a schema in the mapping document. A schema may be specified for a particular class or collection mapping hibernate-mapping class name org.hibernate.auction.model.Category table CATEGORY schema AUCTION . class hibernate-mapping It can even be declared for the whole document hibernate-mapping default-schema AUCTION . hibernate-mapping This isn t the only thing the root hibernate-mapping element is useful for. Declaring class names All the persistent classes of the CaveatEmptor application are declared in the Java package org.hibernate.auction.model. It would become tedious to specify this package name every time we named a class in our mapping documents. Let s reconsider our mapping for the Category class the file Cate-gory.hbm.xml xml version 1.0 DOCTYPE hibernate-mapping PUBLIC - Hibernate Hibernate Mapping DTD EN http hibernate.sourceforge.net hibernate-mapping-2.0.dtd hibernate-mapping class name org.hibernate.auction.model.Category table CATEGORY . class hibernate-mapping 84 CHAPTER 3 Mapping persistent classes We don t want to repeat the full package name whenever this or any other class is named in an association subclass or component mapping. So instead we ll specify a package xml version 1.0 DOCTYPE hibernate-mapping PUBLIC - Hibernate Hibernate Mapping DTD EN http hibernate.sourceforge.net hibernate-mapping-2.0.dtd hibernate-mapping package org.hibernate.auction.model class name Category table CATEGORY . class hibernate-mapping Now all unqualified class names that appear in this mapping document will be prefixed with the declared package name. We assume this setting in all mapping examples in this book. If writing XML files by hand using the DTD for auto-completion of course still

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.