title: Unable to locate appropriate constructor on class JPA
body: <p>I am getting the following error:</p>
  
  <pre><code>java.lang.IllegalArgumentException: org.hibernate.QueryException: unexpected char:
  
   SELECT NEW com.classes.applicant.ApplicantEntry(app.indSsn, app.indivName, app.indAddrLocTx,app.indAddrCityNm,app.indAdrStateAb,app.indAddrZipCd, app.phoneNr,app.workPhoneNr) FROM TApplicant app WHERE app.indSsn = :ssn
  </code></pre>
  
  <p>The class Constructor is correct:</p>
  
  <pre><code>public ApplicantEntry(String indSsn, String indivName, String indAddrLocTx, String indAddrCityNm, String indAdrStateAb, String indAddrZipCd,
                                   String phoneNr, String workPhoneNr) {
          this.indSsn = indSsn;
          this.indivName = indivName;
          this.indAddrLocTx = indAddrLocTx;
          this.indAddrCityNm = indAddrCityNm;
          this.indAdrStateAb = indAdrStateAb;
          this.indAddrZipCd = indAddrZipCd;
          this.phoneNr = phoneNr;
          this.workPhoneNr = workPhoneNr;
  
      }
  </code></pre>
  
  <p>And the entity:</p>
  
  <pre><code>@Entity
  @Table(name = "T_APPLICANT", schema = "APP")
  public class TApplicant implements Serializable, Applicant {
      private static final long serialVersionUID = 1L;
  
      @Id
      @Column(name = "IND_SSN", columnDefinition = "CHAR")
      private String indSsn;
  </code></pre>
  
  <p>I do not understand why it is complaining about it is expecting all strings when it is recieving all strings.</p>
  
  <p>I am running the query in intellij's persistence tool.</p>
  
  <p>Full query in Repository:</p>
  
  <pre><code>@Query("SELECT NEW com.classes.applicant.ApplicantEntry(app.indSsn, app.indivName, "
             +"app.indAddrLocTx,app.indAddrCityNm,app.indAdrStateAb,app.indAddrZipCd, app.phoneNr,app.workPhoneNr) "
             +"FROM TApplicant app "
             +"WHERE app.indSsn = :ssn ")
      ApplicantEntry getApplicantEntry(@Param("ssn") String ssn);
  </code></pre>