package org.eclipse.emf.texo.test.model.issues.bz325429_test; import javax.persistence.Basic; import javax.persistence.DiscriminatorColumn; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; 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>Contact</b></em>'. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Entity(name = "test_Contact") @DiscriminatorColumn(length = 255) @Converters({ @Converter(converterClass = TexoTestObjectConverter.class, name = "TexoTestObjectConverter"), @Converter(converterClass = TexoTestQNameConverter.class, name = "TexoTestQNameConverter") }) public class Contact extends Identifiable { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Basic() private String value = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Basic() @Enumerated(EnumType.STRING) private ContactType type = null; /** * Returns the value of '<em><b>value</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>value</b></em>' feature * @generated */ public String getValue() { return value; } /** * Sets the '{@link Contact#getValue() <em>value</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newValue * the new value of the '{@link Contact#getValue() value}' feature. * @generated */ public void setValue(String newValue) { value = newValue; } /** * Returns the value of '<em><b>type</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>type</b></em>' feature * @generated */ public ContactType getType() { return type; } /** * Sets the '{@link Contact#getType() <em>type</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newType * the new value of the '{@link Contact#getType() type}' feature. * @generated */ public void setType(ContactType newType) { type = newType; } /** * 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 "Contact " + " [value: " + getValue() + "]" + " [type: " + getType() + "]" + "{extends: " + super.toString() + "} "; } }