The present invention relates to compounds of the formula (I) or pharmaceutically acceptable salts or hydrates thereof. The present invention further relates to processes for the preparation of the compounds of formula (I) and optical isomers and to use of the compounds of formula (I), isomers, pharmaceutically acceptable salts or hydrates thereof as medicaments, in particular as medicaments for the treatment and prevention of Hepatitis B.