I have this object that I need to save in a database. Until now I always worked with MySQL but it's really hard to use it for some structures (LinkedList, Hashmap etc...) I want to save it in a database that somehow I will be able to use those object in php too, without hard difficulties...
public class Group {
private String name = null;
private LinkedList<Question> track = null;
private Date startTime = null;
private Date endTime = null;
private HashMap<Question, Bitmap> imagePerQuestion;
public String getName() {
return name;
}
public LinkedList<Question> getTrack() {
if (startTime == null)
//First time that you get the track it assigns the startTime
startTime = new Date();
return track;
}
public Date getStartTime() {
return startTime;
}
public Date getEndTime() {
return endTime;
}
public void setName(String name) {
this.name = name;
}
public void setFinish(){
if (endTime == null && startTime != null){
endTime = new Date();
}
}
public Group(LinkedList<Question> track){
this.track = track;
this.imagePerQuestion = new HashMap<>();
}
}
One thing that is important to say is that my client uses java, but the server (which handles the database) will probably work with php.
If it's really hard/impossible to work with php, I'll be glad to hear about a java-based web framework that will do the job.