You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

68 rivejä
1.4 KiB

  1. /*******************************************************************************
  2. * Copyright 2019 2Fi Business Solutions Ltd.
  3. *
  4. *
  5. *
  6. * This code is copyrighted. Under no circumstances should any party, people,
  7. * or organization should redistribute any portions of this code in any form,
  8. * either verbatim or through electronic media, to any third parties, unless
  9. * under explicit written permission by 2Fi Business Solutions Ltd.
  10. ******************************************************************************/
  11. package com.ffii.tbms.counter;
  12. import javax.persistence.Column;
  13. import javax.persistence.Entity;
  14. import javax.persistence.Table;
  15. import com.ffii.core.BaseEntity;
  16. /**
  17. * @author Patrick
  18. */
  19. @Entity
  20. @Table(name = "id_counter")
  21. public class IdCounter extends BaseEntity<Integer> {
  22. private static final long serialVersionUID = 2968431879107638750L;
  23. @Column(columnDefinition = "varchar(50)")
  24. private String name;
  25. @Column(nullable = false)
  26. private int count;
  27. // min. length for code formatting
  28. @Column(nullable = false)
  29. private int length;
  30. /** Default constructor */
  31. public IdCounter() {
  32. }
  33. public String getName() {
  34. return name;
  35. }
  36. public void setName(String name) {
  37. this.name = name;
  38. }
  39. public int getCount() {
  40. return count;
  41. }
  42. public void setCount(int count) {
  43. this.count = count;
  44. }
  45. public int getLength() {
  46. return length;
  47. }
  48. public void setLength(int length) {
  49. this.length = length;
  50. }
  51. }