@Entity
public class CustomerCredit
extends java.lang.Object
Constructor and Description |
---|
CustomerCredit() |
CustomerCredit(int id,
java.lang.String name,
java.math.BigDecimal credit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.math.BigDecimal |
getCredit() |
int |
getId() |
java.lang.String |
getName() |
int |
hashCode() |
CustomerCredit |
increaseCreditBy(java.math.BigDecimal sum) |
void |
setCredit(java.math.BigDecimal credit) |
void |
setId(int id) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
public CustomerCredit()
public CustomerCredit(int id, java.lang.String name, java.math.BigDecimal credit)
public java.lang.String toString()
toString
in class java.lang.Object
public java.math.BigDecimal getCredit()
public int getId()
public void setId(int id)
public void setCredit(java.math.BigDecimal credit)
public java.lang.String getName()
public void setName(java.lang.String name)
public CustomerCredit increaseCreditBy(java.math.BigDecimal sum)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object