io.mateu.jpa.domain.ui.cruds.JpaRpcCrudViewSerializer Maven / Gradle / Ivy
package io.mateu.jpa.domain.ui.cruds;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
public class JpaRpcCrudViewSerializer extends JsonSerializer {
@Override
public void serialize(
JpaRpcCrudView jpaRpcCrudView,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider)
throws IOException {
jsonGenerator.writeStartObject();
jsonGenerator.writeObjectField("action", jpaRpcCrudView.getAction());
jsonGenerator.writeEndObject();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy