package dao;
import model.advertisement;
import model.seller;
public interface AdDao {
	public void addAd(seller seller,String adtitle,String adimage);
	public advertisement checkAd(String adtitle);
}

@@ -18,24 +18,47 @@
 ort 
-model.advertisem
+java.util.List;%0D%0A%0D%0Aimport model.ad_pres
 ent;
@@ -72,22 +72,29 @@
 t model.
-seller
+advertisement
 ;%0D%0Apubli
@@ -114,24 +114,26 @@
 dDao %7B%0D%0A
+%0D%0A
 %09public 
 void add
@@ -128,112 +128,292 @@
 lic 
-void addAd(seller s
+List%3Cad_present%3E getAd();%0D%0A%09%0D%0A%09public List%3Cadvertisement%3E getAdByS
 eller
-,
+ID(
 String 
-adtitle,String adimage);%0D%0A%09public advertisement checkAd(String adtitle);
+id);%0D%0A%09%0D%0A%09public int getNumberOfAdBySellerID(String id);%0D%0A%09%0D%0A%09public boolean addAd(advertisement newad);%0D%0A%09%0D%0A%09public advertisement getAdByAdID(String id);%0D%0A%09%0D%0A%09public boolean editAdd(advertisement ad);%0D%0A
 %0D%0A%7D%0D

Update AdDao.java