8 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
13 import javax.persistence.DiscriminatorValue;
14 import javax.persistence.Entity;
15 import javax.persistence.NamedQueries;
16 import javax.persistence.NamedQuery;
30 @DiscriminatorValue(
"person")
32 @NamedQuery(name =
"SuggestionAttribute.findByUserValue", query =
"SELECT a FROM SuggestionAttribute a WHERE a.userValue = :userValue"),
50 this.simpleType =
"person";
51 this.refSuggestion = refSuggestion;
72 this.user = (
User) person;
93 return "<a:person id=\"" + user.getEmail() +
"\"/>";
105 public void setRawValues(Object values)
throws IllegalArgumentException {
106 throw new UnsupportedOperationException(
"Server internal error.");
void setValue(Object person)
static final String PERSON_URI
void setRawValues(Object values)
String getTypeOntologyUri()
Abstract class representing more complex attribute of suggestion.
Class representing suggestion of annotation.
Class representing attribute of type Person for peupose of suggestion.
SugPersonAttribute(String name, User person, Suggestion refSuggestion)
String getXmlAttributeName()