/* * Copyright (c) 2009 Mysema Ltd. * All rights reserved. * */ package com.mysema.query.inheritance; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import org.junit.Test; import com.mysema.query.annotations.QueryEntity; import com.mysema.query.domain.AbstractTest; import com.mysema.query.types.path.PSimple; import com.mysema.query.types.path.PString; public class Inheritance3Test extends AbstractTest{ /* * TODO : map type variables to BeanModels */ @QueryEntity public class GenericSupertype{ A field; Collection fieldCol; Set fieldSet; List fieldList; Map fieldMap1; Map fieldMap2; String stringField; } @QueryEntity public class GenericSupertypeC> extends GenericSupertype{ } @QueryEntity public class GenericSupertypeS extends GenericSupertypeC{ } @Test public void test1() throws SecurityException, NoSuchFieldException{ cl = QInheritance3Test_GenericSupertype.class; match(PSimple.class, "field"); cl = QInheritance3Test_GenericSupertypeS.class; match(PString.class, "field"); } }