package com.sap.hana.cloud.samples.benefits.odata.beans;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class BenefitsAmount {

	@Expose
	@SerializedName("targetPoints")
	private long targetPoints;

	@Expose
	@SerializedName("externalCode")
	private String userId;

	private static final long DEFAULT_TARGET_POINTS = 300;

	public BenefitsAmount() {
	};

	public BenefitsAmount(String userId, long targetPoints) {
		this.targetPoints = targetPoints;
		this.userId = userId;
	}

	public long getTargetPoints() {
		return targetPoints;
	}

	public void setTargetPoints(long targetPoints) {
		this.targetPoints = targetPoints;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public static BenefitsAmount defaultBenefitsAmount(String userId) {
		return new BenefitsAmount(userId, DEFAULT_TARGET_POINTS);
	}

}

package com.sap.hana.cloud.samples.benefits.odata.beans;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class BenefitsAmount {

	@Expose
	@SerializedName("cust_targetPoints")
	private long targetPoints;

	@Expose
	@SerializedName("externalCode")
	private String userId;
	
	private static final long DEFAULT_TARGET_POINTS = 300;

	public BenefitsAmount() {
	};

	public BenefitsAmount(String userId, long targetPoints) {
		this.targetPoints = targetPoints;
		this.userId = userId;
	}

	public long getTargetPoints() {
		return targetPoints;
	}

	public void setTargetPoints(long targetPoints) {
		this.targetPoints = targetPoints;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public static BenefitsAmount defaultBenefitsAmount(String userId){
	    return new BenefitsAmount(userId, DEFAULT_TARGET_POINTS);
	}

}

Revert last commit