/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.familyTree.entity.place;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 * @author Joe
 */
@Entity
@DiscriminatorValue(value = "country")
@NamedQueries({
                      @NamedQuery(name = Country.FIND_BY_NAME, query = "SELECT p FROM Country p WHERE p.name = :name"),
                      @NamedQuery(name = Country.FIND_ALL, query = "SELECT p FROM Country p")
              })
public class Country extends Place
{

    /**
     *
     */
    public static final String FIND_ALL = "Country.findAll";

    /**
     *
     */
    public static final String FIND_BY_NAME = "Country.findByName";

    /**
     * @return {@inheritDoc}
     */
    @Override
    public String getLink()
    {
        return mapLink(getName());
    }
}

@@ -810,27 +810,24 @@
 Place%0A%7B%0A
-%0A  
   /**%0A  
    *%0A   
@@ -814,32 +814,258 @@
 e%0A%7B%0A  /**%0A  
-   *%0A   
+* Specifies the %7B@link String%7D that represents the %7B@link NamedQuery%7D to create a %7B@link TypedQuery%7D to get all%0A  * counties.%0A  *%0A  * For example: %7B@code TypedQuery%3CCounty%3E query = em.createNamedQuery(County.FIND_ALL, County.class);%7D%0A
   */%0A    pub
@@ -1123,26 +1123,149 @@
 %22;%0A%0A
-   
  /**%0A  
-   *%0A   
+* Specifies the %7B@link String%7D that represents the %7B@link NamedQuery%7D to create a %7B@link TypedQuery%7D to get all%0A  * counties by name.%0A
   */
@@ -1342,16 +1342,45 @@
     /**%0A
+     * %7B@inheritDoc%7D%0A     * %0A
      * @

Update Country.java