User Level Class used for represent the level of user, indicating user’s loyalty and contribution to our site.
Commonly, all downloadable torrent will be included with Post, each post with has a minimum requirement for allowing user to access or download. From this pespective, User Level class doing the job for classifying users.

Table Structure

Beware that we use the name of UserLevel in Java but it map to Level in database for clarifying keyword.
The data in this table mostly fixed in most of time. So their lid will be relatively low and might not changes.

Column Type  
lid   integer
minimum   integer
name   character varying(50)
icon   character varying(50)
min_upload_byte   bigint
min_download_byte   bigint


public class UserLevel
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer lid;

    private Integer minimum;

    @Column(length = 50)
    private String name;

    private String icon;

    @Column(name = "min_upload_byte")
    private Long minUploadByte;

    @Column(name = "min_download_byte")
    private Long minDownloadByte;

    @OneToMany(mappedBy = "minLevel")
    private List<Post> postList;


UserLevel usually will not return independently, but nested with User or Post class.
A sample format like:



25 October 2015