Java Reference
In-Depth Information
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) Long id;
@Persistent private String name;
@Persistent private double amount;
@Persistent private String stageName;
@Persistent private int probability;
@Persistent private Date closeDate;
@Persistent private int orderNumber;
@Persistent private Long accountId;
public Opportunity(String name, double amount, String stageName, int
probability, Date closeDate, int orderNumber, Long accountId) {
this.name = name;
this.amount = amount;
this.stageName = stageName;
this.probability = probability;
this.closeDate = closeDate;
this.orderNumber = orderNumber;
this.accountId = accountId;
}
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
Search WWH ::




Custom Search