Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Created October 4, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufcakal/bfb9389a72f6ac3f1148e93b4865e8a0 to your computer and use it in GitHub Desktop.
Save yusufcakal/bfb9389a72f6ac3f1148e93b4865e8a0 to your computer and use it in GitHub Desktop.
Medium Post
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