I want to use mapDb to store List object syntax wise not throwing any error, but after getting data for map getting class cast exception. but I do see below warnings in eclipse: Multiple markers at this line
below is the code.
DB db = DBMaker.fileDB("file.db").fileMmapEnable().make();
ConcurrentMap<String,List<Employee>> map = db.hashMap("map", Serializer.STRING, Serializer.JAVA).createOrOpen();
List<Employee> employees = new ArrayList<Employee>();
map.put("2019_JAN", employees );
map.put("2019_FEB", employees );
db.commit();
db.close();
not use where I am doing wrong, your inputs will be valuable