@POST @Consumes("application/json") @Produces("application/json") public LCD create(LCD entity) { entity.setGununTarihi(new Date()); dao.persist(entity); entity.setKullanici(kullaniciDao.find(entity.getKullaniciID())); entity.setBolge(bolgeDao.find(entity.getBolgeID())); return entity; }