Search in sources :

Example 1 with EvenMoreConcreteElement

use of org.neo4j.ogm.domain.gh806.EvenMoreConcreteElement in project neo4j-ogm by neo4j.

the class HierarchyRelsTest method relationshipsToSubclassesShouldBeClearedAsWell.

// GH-806
@Test
public void relationshipsToSubclassesShouldBeClearedAsWell() {
    inheritanceImpl(s -> new Element(s), Container::setElement);
    inheritanceImpl(s -> new ConcreteElement(s), Container::setElement);
    inheritanceImpl(s -> new VeryConcreteElementA(s), Container::setElement);
    inheritanceImpl(s -> new EvenMoreConcreteElement(s), Container::setElement);
    inheritanceImpl(s -> new IElementImpl1(s), Container::setElement2);
    inheritanceImpl(s -> new IElementImpl1A(s), Container::setElement2);
}
Also used : Container(org.neo4j.ogm.domain.gh806.Container) EvenMoreConcreteElement(org.neo4j.ogm.domain.gh806.EvenMoreConcreteElement) Element(org.neo4j.ogm.domain.gh806.Element) ConcreteElement(org.neo4j.ogm.domain.gh806.ConcreteElement) VeryConcreteElementA(org.neo4j.ogm.domain.gh806.VeryConcreteElementA) IElementImpl1A(org.neo4j.ogm.domain.gh806.IElementImpl1A) IElementImpl1(org.neo4j.ogm.domain.gh806.IElementImpl1) EvenMoreConcreteElement(org.neo4j.ogm.domain.gh806.EvenMoreConcreteElement) ConcreteElement(org.neo4j.ogm.domain.gh806.ConcreteElement) EvenMoreConcreteElement(org.neo4j.ogm.domain.gh806.EvenMoreConcreteElement) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ConcreteElement (org.neo4j.ogm.domain.gh806.ConcreteElement)1 Container (org.neo4j.ogm.domain.gh806.Container)1 Element (org.neo4j.ogm.domain.gh806.Element)1 EvenMoreConcreteElement (org.neo4j.ogm.domain.gh806.EvenMoreConcreteElement)1 IElementImpl1 (org.neo4j.ogm.domain.gh806.IElementImpl1)1 IElementImpl1A (org.neo4j.ogm.domain.gh806.IElementImpl1A)1 VeryConcreteElementA (org.neo4j.ogm.domain.gh806.VeryConcreteElementA)1