Foreign key in criteria

I have a foreign key in a table and I would like to query the data in the table using the foreign key . The generated criteria class does not include the foreign key field.

Other than this (important for me issue) the criteria class works nicely.