Changed repository ID type

This change will allow you to use the findone with the repo. By the moment with the integer gives an error, because the ids of the classes are longs.