NHibernate (2) ing configuration and application

Source: Internet
Author: User

There is not much information about nhib.pdf, and there are fewer Chinese characters. Fortunately, there are some translation articles with high gold content. In addition, the use of nhib.pdf and Hibernate is similar, therefore, we also have a lot of experience to refer to Hibernate. This article is a practical experience and an advanced tutorial for nhib.pdf. If you have read the nhib.pdf document but still cannot control it, you can refer to this article, or you just want to see how others use it in practice, you can also look at it. This article mainly involves these concepts. Keywords: cascade operations multi-table queries complex query value object ing configuration the previous article mainly introduces the design of Domain Models, it includes three associated models: [batch], [order], and [task. This mainly explains the implementation of ing intermediate join operations. The hbm. xml ing configuration is provided, which is also the most primitive and basic configuration method. Note the bold Section. Copy the Code <? Xml version = "1.0" encoding = "UTF-8"?> <Hibernate-mapping xmlns = "urn: nhibernate-mapping-2.2 "assembly =" PP3 "namespace =" PP3.Domain "> <class name =" PurchaseTime "table =" PP3_PURCHASETIME "> <id name =" ID "column =" ID "type = "decimal" unsaved-value = "0"> <generator class = "sequence"> <param name = "sequence"> SEQ_PURCHASETIME </param> </generator> </id> <property name = "Name" column = "NAME" type = "string"/> <set name = "PurchaseOrders" inverse = "true" casc Ade = "all-delete-orphan"> <key column = "TIMEID"/> <one-to-learn class = "PurchaseOrder"/> </set> </class>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.