implemented repositories by hibernate