Examples of GetResponseUnmarshaller


Examples of com.apitrary.orm.core.unmarshalling.GetResponseUnmarshaller

    GetRequest request = new GetRequest();
    request.setEntity(resolveApitraryEntity(entity));
    request.setId(id);
    GetResponse response = resolveApitraryClient().send(request);

    T result = (T) new GetResponseUnmarshaller(this).unMarshall(response, entity);

    if (result != null) {
      List<Field> fields = ClassUtil.getAnnotatedFields(entity, Id.class);
      if (fields.isEmpty() || fields.size() > 1) {
        throw new ApitraryOrmIdException("Illegal amount of annotated id properties of class " + entity.getClass().getName());
View Full Code Here

Examples of com.apitrary.orm.core.unmarshalling.GetResponseUnmarshaller

    GetRequest request = new GetRequest();
    request.setEntity(resolveApitraryEntity(entity));
    request.setId(id);
    GetResponse response = resolveApitraryClient().send(request);

    T result = (T) new GetResponseUnmarshaller(this).unMarshall(response, entity);

    if (result != null) {
      List<Field> fields = ClassUtil.getAnnotatedFields(entity, Id.class);
      if (fields.isEmpty() || fields.size() > 1) {
        throw new ApitraryOrmIdException("Illegal amount of annotated id properties of class " + entity.getClass().getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.