Jackson serialization test
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
package mops.gruppen2.domain.event;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import lombok.Value;
|
||||
import lombok.experimental.NonFinal;
|
||||
|
||||
@Value
|
||||
@NonFinal
|
||||
@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME)
|
||||
public class Event {
|
||||
long event_id;
|
||||
long group_id;
|
||||
|
||||
Reference in New Issue
Block a user