Yes it is possible. Look at the Alias Tutorial and you want the Attribute Alias section.
willcodejavaforfood
2010-10-05 08:20:58
Yes it is possible. Look at the Alias Tutorial and you want the Attribute Alias section.
To convert them to attributes try the following:
xs.useAttributeFor(EnglishWord.class, "word");
xs.useAttributeFor(EnglishWord.class, "occurenceNumber");
xs.useAttributeFor(EnglishWord.class, "rating");
xs.useAttributeFor(EnglishWord.class, "isVerb");