Java persistence performance examples