![JAR search and dependency download from the Maven repository](/logo.png)
fi.foyt.fni.persistence.model.common.Country Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence Show documentation
Show all versions of persistence Show documentation
Forge & Illusion - Persistence
package fi.foyt.fni.persistence.model.common;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Country {
public Long getId() {
return id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Id
@GeneratedValue (strategy=GenerationType.IDENTITY)
private Long id;
@Column (nullable = false)
private String name;
@Column (nullable = false)
private String code;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy