BillType.java

张创琦

  1. package com.zcq.entity;
  2. import javax.persistence.*;
  3. import java.io.Serializable;
  4. @Table(name = "bill_type_")
  5. public class BillType implements Serializable {
  6. @Id
  7. @GeneratedValue(strategy = GenerationType.IDENTITY)
  8. @Column(name = "id_")
  9. private Long id;
  10. @Column(name= "name_")
  11. private String name;
  12. @Override
  13. public String toString() {
  14. return "BillType{" +
  15. "id=" + id +
  16. ", name='" + name + '\'' +
  17. '}';
  18. }
  19. public Long getId() {
  20. return id;
  21. }
  22. public void setId(Long id) {
  23. this.id = id;
  24. }
  25. public String getName() {
  26. return name;
  27. }
  28. public void setName(String name) {
  29. this.name = name;
  30. }
  31. }