com.evasion.entity.postal.AddressDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of API Show documentation
Show all versions of API Show documentation
API de l'application modulaire evasion-en-ligne
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.evasion.entity.postal;
import com.evasion.EntityJPA;
import com.evasion.entity.geolocation.Location;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
/**
*
* @author sebastien.glon
*/
@Entity
public class AddressDetails extends EntityJPA {
/***
* serialVersionUID.
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id;
@OneToOne
private Location city;
@OneToOne
private Thoroughfare thoroughfare;
@Override
public Long getId() {
return this.id;
}
@Override
public void setId(Long id) {
this.id=id;
}
}