1+ package br .com .sql ;
2+
3+ import com .simplesql .simplesql .annotations .AutoIncrement ;
4+ import com .simplesql .simplesql .annotations .Column ;
5+ import com .simplesql .simplesql .annotations .ForeignKey ;
6+ import com .simplesql .simplesql .annotations .Key ;
7+ import com .simplesql .simplesql .annotations .Table ;
8+
9+ import java .io .Serializable ;
10+
11+ @ Table
12+ public class Categoria implements Serializable {
13+
14+ @ Column (type = "INTEGER" )
15+ @ AutoIncrement ()
16+ @ Key
17+ private int id ;
18+
19+ @ Column (type = "INTEGER" ,non_null = true )
20+ private long idCnpj ;
21+
22+ @ Column (type = "TEXT" ,non_null = true )
23+ private String nome ;
24+
25+ @ Column (type = "BLOB" ,non_null = true )
26+ private byte [] img ;
27+
28+ @ Column (type = "DECIMAL" ,non_null = true )
29+ private float valor ;
30+
31+ @ Column (type = "INTEGER" ,non_null = true )
32+ private short value ;
33+
34+ public Categoria () {
35+ }
36+
37+ public long getIdCnpj () {
38+ return idCnpj ;
39+ }
40+
41+ public void setIdCnpj (long idCnpj ) {
42+ this .idCnpj = idCnpj ;
43+ }
44+
45+ public String getNome () {
46+ return nome ;
47+ }
48+
49+ public void setNome (String nome ) {
50+ this .nome = nome ;
51+ }
52+
53+ public int getId () {
54+ return id ;
55+ }
56+
57+ public void setId (int id ) {
58+ this .id = id ;
59+ }
60+
61+ public byte [] getImg () {
62+ return img ;
63+ }
64+
65+ public void setImg (byte [] img ) {
66+ this .img = img ;
67+ }
68+
69+ public float getValor () {
70+ return valor ;
71+ }
72+
73+ public void setValor (float valor ) {
74+ this .valor = valor ;
75+ }
76+
77+ public short getValue () {
78+ return value ;
79+ }
80+
81+ public void setValue (short value ) {
82+ this .value = value ;
83+ }
84+ }
0 commit comments