package com.mysema.query.domain;

import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
import java.util.Set;

import org.junit.Test;

public class Generic16Test {

    @Entity
    public static abstract class HidaBez<B extends HidaBez<B, G>, G extends HidaBezGruppe<G, B>> extends CapiBCKeyedByGrundstueck {

    }

    @Entity
    public static abstract class HidaBezGruppe<G extends HidaBezGruppe<G, B>, B extends HidaBez<B, G>> extends CapiBCKeyedByGrundstueck {

        Set<HidaBez> bez;

    }

    @MappedSuperclass
    public static abstract class CapiBCKeyedByGrundstueck extends CapiBusinessClass {

    }

    @MappedSuperclass
    public static abstract class CapiBusinessClass implements ICapiBusinessClass {

    }

    public interface ICapiBusinessClass extends Comparable<ICapiBusinessClass> {


    }

    @Test
    public void test() {

    }

}

@@ -120,16 +120,48 @@
 va.util.
+SortedSet;%0Aimport java.util.Tree
 Set;%0A%0Aim
@@ -528,23 +528,42 @@
    S
-et%3CHidaBez%3E bez
+ortedSet%3CB%3E bez = new TreeSet%3CB%3E()
 ;%0A%0A 

Update test