package org.eclipse.emf.texo.test.model.samples.inventory;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.eclipse.emf.texo.test.TexoTestObjectConverter;
import org.eclipse.emf.texo.test.TexoTestQNameConverter;
import org.eclipse.emf.texo.test.model.base.identifiable.Identifiable;
import org.eclipse.persistence.annotations.Converter;
import org.eclipse.persistence.annotations.Converters;
/**
* A representation of the model object '<em><b>PDeclaration</b></em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Entity(name = "inv_PDeclaration")
@Table(name = "inv_PDeclaration")
@DiscriminatorColumn(length = 255)
@Converters({ @Converter(converterClass = TexoTestObjectConverter.class, name = "TexoTestObjectConverter"),
@Converter(converterClass = TexoTestQNameConverter.class, name = "TexoTestQNameConverter") })
public class PDeclaration extends Identifiable {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Basic()
@Column(name = "id")
private long id = 0;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Basic()
@Column(name = "name")
private String name = null;
/**
* Returns the value of '<em><b>id</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>id</b></em>' feature
* @generated
*/
public long getId() {
return id;
}
/**
* Sets the '{@link PDeclaration#getId() <em>id</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newId
* the new value of the '{@link PDeclaration#getId() id}' feature.
* @generated
*/
public void setId(long newId) {
id = newId;
}
/**
* Returns the value of '<em><b>name</b></em>' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the value of '<em><b>name</b></em>' feature
* @generated
*/
public String getName() {
return name;
}
/**
* Sets the '{@link PDeclaration#getName() <em>name</em>}' feature.
*
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param newName
* the new value of the '{@link PDeclaration#getName() name}' feature.
* @generated
*/
public void setName(String newName) {
name = newName;
}
/**
* A toString method which prints the values of all EAttributes of this instance. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
*/
@Override
public String toString() {
return "PDeclaration " + " [id: " + getId() + "]" + " [name: " + getName() + "]" + "{extends: " + super.toString()
+ "} ";
}
}