Annotated classes will generate typed query helpers at compile time. See documentation.
Set to internal visibility the generated classes.