Demo entry 5241895

Basic model

   

Submitted by anonymous on Jun 11, 2016 at 01:50
Language: Java. Code size: 340 Bytes.

public class User extends Generic {

    public static final Integer VERSION = 1;

    @NotNull
    private String email;

    @JsonIgnore
    private String code;

    public User() {
        this.setVersion(VERSION);
    }

    public User(String id) {
        this.setVersion(VERSION);
        this.setId(id);
    }

}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).