/** * This source code belongs to Moon Zang, the author. To use it for * commercial/business purpose, please contact DeepNightTwo@gmail.com * * @author Moon Zang * */ package costrecord.jdo; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable(identityType = IdentityType.APPLICATION) public class CostRoleWeight { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private Long costID; @Persistent private Long roleID; @Persistent private double weight; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCostID() { return costID; } public void setCostID(Long costID) { this.costID = costID; } public Long getRoleID() { return roleID; } public void setRoleID(Long roleID) { this.roleID = roleID; } public double getWeight() { return weight; } public void setWeight(double weight) { this.weight = weight; } }