All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mateu.jpa.domain.ui.cruds.JpaRpcCrudViewSerializer Maven / Gradle / Ivy

There is a newer version: 3.0-alpha.63
Show newest version
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