Assume there are some named queries in an entity, how should those named queries be commented? Is there a way to map them into the created javadoc?
@Entity
@NamedQueries({
@NamedQuery(name="Country.findAll",
query="SELECT c FROM Country c"),
@NamedQuery(name="Country.findByName",
query="SELECT c FROM Country c WHERE c.name = :name"),
})
public class Country {
...
}
At the moment I put comments (non javadoc) in the line before but I don't like it very much.
// find all countries
@NamedQuery(name="Country.findAll", query="SELECT c FROM Country c")