com.evasion.entity.Corporation 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;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
/**
*
* @author user
*/
@Entity(name = Corporation.ENTITY_NAME)
@Table(name = Corporation.ENTITY_NAME)
public class Corporation extends Person {
/**
* UID de serialisation.
*/
private static final long serialVersionUID = 1L;
public static final String ENTITY_NAME = "COM_CORPORATION";
/**
* Description de l'activité de la personne morale.
*/
@Lob
@Column(nullable = false, length = 1500)
private String description;
/**
* Chemin vers le logo.
*/
@Lob
@Column(nullable = true)
private String logo;
@Column(nullable = true)
private String siteUrl;
/**
* Constructeur par defaut.
*/
public Corporation() {
}
/**
* Constructeur avance.
*
* @param nom nom de la personne morale;
* @param email {@link com.evasion.entity.Person#email};
* @param description {@link com.evasion.entity.Corporation#description};
*/
public Corporation(final String nom, final String email, final String description) {
super(nom, email);
this.description = description;
}
/**
* Getter de description.
*
* @return description de l'entreprise.
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public String getSiteUrl() {
return siteUrl;
}
/**
* Setter de la descrition.
*
* @param siteUrl url du site internet de l'entreprise.
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public void setSiteUrl(String siteUrl) {
this.siteUrl = siteUrl;
}
/**
* Getter de description.
*
* @return description de l'entreprise.
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public String getDescription() {
return description;
}
/**
* Setter de la descrition.
*
* @param description descrition de l'entreprise.
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public void setDescription(String description) {
this.description = description;
}
/**
* Getter de logo.
*
* @return chemin vers le logo;
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public String getLogo() {
return logo;
}
/**
* Setter de logo.
*
* @param logo chemin vers le logo;
*/
@SuppressWarnings("checkStyle.designForExtensionCheck")
public void setLogo(String logo) {
this.logo = logo;
}
}