forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace NHibernate.Test.BulkManipulation | ||
{ | ||
public class Course | ||
{ | ||
public virtual long CourseId { get; set; } | ||
public virtual string Description { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace NHibernate.Test.BulkManipulation | ||
{ | ||
[Serializable] | ||
public class Enrolment | ||
{ | ||
public virtual long EnrolmentId { get; set; } | ||
public virtual Student Student { get; set; } | ||
public virtual Course Course { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<hibernate-mapping | ||
xmlns="urn:nhibernate-mapping-2.2" | ||
assembly="NHibernate.Test" | ||
namespace="NHibernate.Test.BulkManipulation"> | ||
|
||
<class name="Course"> | ||
<id name="CourseId"> | ||
<generator class="native" /> | ||
</id> | ||
<property name="Description" /> | ||
</class> | ||
|
||
<class name="Student"> | ||
<id name="StudentId"> | ||
<generator class="native" /> | ||
</id> | ||
<property name="Name" /> | ||
</class> | ||
|
||
<class name="Enrolment"> | ||
<id name="EnrolmentId"> | ||
<generator class="native" /> | ||
</id> | ||
<many-to-one name="Student" column="StudentId" class="Student" /> | ||
<many-to-one name="Course" column="CourseId" class="Course" /> | ||
</class> | ||
|
||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace NHibernate.Test.BulkManipulation | ||
{ | ||
public class Student | ||
{ | ||
public virtual long StudentId { get; set; } | ||
public virtual string Name { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters