package com.goree.api.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@Getter
@Setter
@ToString
public class Meeting {
    private long id;
    private String title;
    private Group group;
    private Place place;
    private Member promoter;
    private Date date;
    private String description;
    
    @Override
    public boolean equals(Object other) {
        if (!(other instanceof Meeting))
            return false;
        Meeting meeting = (Meeting) other;
        return meeting.getTitle().equals(title) 
        && meeting.getGroup().getId() == group.getId()
        && meeting.getGroup().getName().equals(group.getName())
        && meeting.getDate().equals(date)
        && meeting.getPromoter().getId() == promoter.getId()
        && meeting.getPromoter().getNickname().equals(promoter.getNickname())
        && meeting.getPlace().getId() == place.getId();        
    }
}

@@ -24,16 +24,242 @@
 omain;%0A%0A
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;%0Aimport com.fasterxml.jackson.databind.annotation.JsonSerialize;%0Aimport com.goree.api.util.GoreeDateDeserializer;%0Aimport com.goree.api.util.GoreeDateSerializer;%0A
 import l
@@ -268,24 +268,24 @@
 bok.Getter;%0A
-
 import lombo
@@ -573,20 +573,183 @@
 iption;%0A
+%0A
     
+@JsonSerialize(using= GoreeDateSerializer.class)%0A    @JsonDeserialize(using = GoreeDateDeserializer.class)%0A    public Date getDate() %7B%0A        return date;%0A    %7D%0A
 %0A    @Ov

Apply Serialize and deserialize