Last active
August 5, 2018 14:24
-
-
Save jeetprksh/1c5dddf03a05b85df4728b34b515f628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jeetprksh.h2.boot.entity; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
@Entity | |
public class ApplicationSetting { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Integer id; | |
private String userEmail; | |
private boolean cachingEnabled; | |
ApplicationSetting() { | |
} | |
public ApplicationSetting(String userEmail, boolean cachingEnabled) { | |
this.userEmail = userEmail; | |
this.cachingEnabled = cachingEnabled; | |
} | |
@Override | |
public String toString() { | |
return "ApplicationSetting{" + | |
"id=" + id + | |
", userEmail='" + userEmail + '\'' + | |
", cachingEnabled=" + cachingEnabled + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment