@@ -0,0 +1,1541 @@
+package com.rizki.mufrizal.spring.oauth2.custom.service.impl;%0A%0Aimport com.rizki.mufrizal.spring.oauth2.custom.domain.Buku;%0Aimport com.rizki.mufrizal.spring.oauth2.custom.repository.BukuRepository;%0Aimport com.rizki.mufrizal.spring.oauth2.custom.service.BukuService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.data.domain.Page;%0Aimport org.springframework.data.domain.Pageable;%0Aimport org.springframework.stereotype.Service;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0A/**%0A *%0A * @Author Rizki Mufrizal %3Cmufrizalrizki@gmail.com%3E%0A * @Web %3Chttps://RizkiMufrizal.github.io%3E%0A * @Since Feb 5, 2017%0A * @Time 7:25:46 PM%0A * @Encoding UTF-8%0A * @Project Spring-OAuth2-Custom%0A * @Package com.rizki.mufrizal.spring.oauth2.custom.service.impl%0A *%0A */%0A@Service%0A@Transactional(readOnly = true)%0Apublic class BukuServiceImpl implements BukuService %7B%0A%0A    @Autowired%0A    private BukuRepository bukuRepository;%0A%0A    @Transactional%0A    @Override%0A    public void saveBuku(Buku buku) %7B%0A        bukuRepository.save(buku);%0A    %7D%0A%0A    @Transactional%0A    @Override%0A    public void updateBuku(Buku buku) %7B%0A        bukuRepository.save(buku);%0A    %7D%0A%0A    @Transactional%0A    @Override%0A    public void deleteBuku(String idBuku) %7B%0A        bukuRepository.delete(idBuku);%0A    %7D%0A%0A    @Override%0A    public Buku getBuku(String idBuku) %7B%0A        return bukuRepository.findOne(idBuku);%0A    %7D%0A%0A    @Override%0A    public Page%3CBuku%3E getBukus(Pageable pageable) %7B%0A        return bukuRepository.findAll(pageable);%0A    %7D%0A%0A%7D%0A

add buku service impl