Skip to content

Instantly share code, notes, and snippets.

@alfeg
Created December 4, 2022 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfeg/6cb7023c040a14deda96d6cc361cfc98 to your computer and use it in GitHub Desktop.
Save alfeg/6cb7023c040a14deda96d6cc361cfc98 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" namespace="Common.Entities" assembly="Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" xmlns="urn:nhibernate-mapping-2.2">
<class name="DerivedClass2" lazy="false" table="DERIVED_CLASS_2">
<id name="Id" type="Int32">
<generator class="assigned" />
</id>
<property name="ClassProp1" />
<property name="ClassProp2" column="CLASS_PROP_2" />
<property name="BaseProp1" column="BASE_PROP_1" />
<property name="BaseProp2" column="BASE_PROP_2" />
<property name="BaseProp3" column="BASE_PROP_3" />
</class>
<class name="DerivedClass" lazy="false" table="DERIVED_CLASS">
<id name="Id" type="Int32">
<generator class="assigned" />
</id>
<property name="ClassProp1" />
<property name="ClassProp2" column="CLASS_PROP_2" />
<property name="BaseProp1" column="BASE_PROP_1" />
<property name="BaseProp2" column="BASE_PROP_2" />
<property name="BaseProp3" column="BASE_PROP_3" />
</class>
</hibernate-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment