Logo white

LO53-PositioningApplication-BBPS / LO53-PositioningServer

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • LO53-PositioningServer
  • src
  • main
  • java
  • core
  • service
  • MapService.java
  • Refactor structure projet
    acb13960
    Notmoo-PC\Notmoo authored
    2017-06-04 17:44:00 +0200  
    Browse Code ยป
MapService.java 443 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package core.service;

import core.dao.HibernateDao;
import core.repository.Map;

/**
 * Created by Guillaume on 29/05/2017.
 */
public class MapService {
    
    private HibernateDao dao;
    
    public MapService(){
        dao = new HibernateDao();
    }
    
    public Byte[] getMapContent(int mapId){
        return dao.getMap(mapId).getContent();
    }
    
    public Map getMap(int mapId){
        return dao.getMap(mapId);
    }
}