Forums Register Login

Problem with Hibernate scalar queries with constructor expression

+Pie Number of slices to send: Send
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


+Pie Number of slices to send: Send
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
Goodbye moon men. Hello tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5651 times.
Similar Threads
Issues executing a query which makes use of a constructor expression
hibernate/Code Coverage(Emma plugin)
Hibernate incorrect replacement of Class in Named Query
[Spring] Exception while creating the session factory
Problem with select query in hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:19:01.