I have a “tags” property declared like that :
@Entity
public class BlogArticle
{
[...]
@ElementCollection(fetch = FetchType.EAGER)
Set<String> tags =new HashSet<String>();
[...]
}
This property represents the tags associated to an Article. Now I want to generate a tag cloud. So I want to count the frequency of each tag.
Is there a simple way to do that? (without creating a Tag object?)
1 Answer