Skip to content

Commit 4c074c2

Browse files
darrenkopphazzik
authored andcommitted
NH-2692 - The identity for values or components is the elements themselves,
so return "elements" as property name
1 parent ac871b3 commit 4c074c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/NHibernate.Test/NHSpecificTest/NH2692/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace NHibernate.Test.NHSpecificTest.NH2692
66
{
7-
[TestFixture, Ignore("Not fixed yet.")]
7+
[TestFixture]
88
public class Fixture : BugTestCase
99
{
1010
[Test]

src/NHibernate/Hql/Ast/ANTLR/Tree/FromElement.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ public virtual string GetIdentityColumn()
485485
{
486486
propertyName = EntityPersister.IdentifierPropertyName;
487487
}
488+
else if (IsCollectionOfValuesOrComponents)
489+
{
490+
propertyName = CollectionPropertyNames.Elements;
491+
}
488492
else
489493
{
490494
propertyName = NHibernate.Persister.Entity.EntityPersister.EntityID;

0 commit comments

Comments
 (0)