Commit 6c6ef54edac3418b51550f168634f7e860e8aa3d
1 parent
cf110fa7
Ajout ServerApp (contient la méthd main())
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
1 | +import dao.HibernateDao; | ||
2 | +import repository.AccessPoint; | ||
3 | +import repository.Map; | ||
4 | + | ||
5 | +/** | ||
6 | + * Created by Guillaume on 09/05/2017. | ||
7 | + */ | ||
8 | +public class ServerApp { | ||
9 | + public static void main(String args[]){ | ||
10 | + HibernateDao dao = new HibernateDao(); | ||
11 | + AccessPoint ap = new AccessPoint(); | ||
12 | + ap.setMac_addr("aa:aa:aa:aa:aa:aa:aa:aa"); | ||
13 | + dao.saveAccessPoint(ap); | ||
14 | + | ||
15 | + Map map = new Map(); | ||
16 | + dao.saveMap(map);/**/ | ||
17 | + } | ||
18 | +} |