All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evasion.entity.geolocation.AdministrativeArea Maven / Gradle / Ivy

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.evasion.entity.geolocation;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author sebastien.glon
 */
@Entity
public class AdministrativeArea implements Serializable{
    /***
     * serialVersionUID.
     */
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue
    private Long id;
    @Column(nullable=false)
    private String name;

    @ManyToOne(optional=true)
    private Country country;

    @OneToMany
    private List subAdministrativeAreas;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy