Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37204 amit 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.GenerationType;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
import java.io.Serializable;
10
 
11
/**
12
 * Maps an {@link ApiClient} to the catalog categories it is allowed to see.
13
 */
14
@Entity
15
@Table(name = "fofo.api_client_category")
16
public class ApiClientCategory implements Serializable {
17
 
18
    private static final long serialVersionUID = 1L;
19
 
20
    @Id
21
    @Column(name = "id", columnDefinition = "int(10) unsigned")
22
    @GeneratedValue(strategy = GenerationType.IDENTITY)
23
    private int id;
24
 
25
    @Column(name = "api_client_id")
26
    private int apiClientId;
27
 
28
    @Column(name = "category_id")
29
    private int categoryId;
30
 
31
    public int getId() {
32
        return id;
33
    }
34
 
35
    public void setId(int id) {
36
        this.id = id;
37
    }
38
 
39
    public int getApiClientId() {
40
        return apiClientId;
41
    }
42
 
43
    public void setApiClientId(int apiClientId) {
44
        this.apiClientId = apiClientId;
45
    }
46
 
47
    public int getCategoryId() {
48
        return categoryId;
49
    }
50
 
51
    public void setCategoryId(int categoryId) {
52
        this.categoryId = categoryId;
53
    }
54
}