Postalcode.java.svn-base 689 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
package jp.agentec.sinaburocast.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="m_postalcode")
public class Postalcode extends AbstractEntity {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "postalcode_id")
	public Integer postalcodeId;

	public String postalcode;

	public String prefecture;

	public String city;

	public String area;

    @ManyToOne
    @JoinColumn(name = "prefecture", referencedColumnName = "prefecture")
    public Prefecture prefecture1;

}