• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Hibernate scalar queries with constructor expression

 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying the query with JPA ( Hibernate 4.1.4)



If the constructor expression is removed, the query work file and return Object[],
With the constructor expression, gives the following error at the time of loading the application to the container. Both the c.name and c.phone are String type and the CustomerProfile have constructor for the agruments.



any hints to rectify the problem ?

Thanks


 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The problem is with package name



The prefix is 'in' instead of 'com'. While parsing the query the 'in' is treated as reserved world. As the 'in'(India) prefix is required, is there is any way to escape the package name in queries.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic