There was an error - Variant was extending AbstractEntity and the correct one is the Variant must extend Product. Now I don't know what the JPA specification is saying but if we leave it like this, how can one select only the variants?