Created
October 4, 2017 17:55
-
-
Save yusufcakal/bfb9389a72f6ac3f1148e93b4865e8a0 to your computer and use it in GitHub Desktop.
Medium Post
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 pojo; | |
import javax.xml.bind.annotation.XmlAccessType; | |
import javax.xml.bind.annotation.XmlAccessorType; | |
import javax.xml.bind.annotation.XmlRootElement; | |
/** | |
* Kullanıcı pojo sınıfımız. | |
* @author Yusuf Çakal | |
* @since 14 Ağustos 2017 | |
*/ | |
@XmlRootElement() | |
@XmlAccessorType(XmlAccessType.FIELD) // tüm field ları kullan demek | |
public class User { | |
private int id; | |
private String name, username, password; | |
private Job job; | |
public User(int id, String name, String username, String password) { | |
this.id = id; | |
this.name = name; | |
this.username = username; | |
this.password = password; | |
} | |
public User() {} | |
//getters and setters fonksiyonları | |
//toString() fonksiyonu | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment