Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with count() function and composed primary key

 
Otavio D Angelis Furtado
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well guys, I have encountered a problem using composed primary key with JPA and Hibernate and I hope to find some help in here.

When I execute the following query:


The hibernate is creating the following SQL:


After the execution, I am getting the following JDBC Exception to Oracle:


As we can see, the SQL that hibernate has created is using 2 parameters on the count() function. I think the problem is it. The question is, Am I doing something wrong, or it is a bug?
The compose key object and the entity are following:



Thank you.
 
Fernando Crestani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really good question.. I am actually passing for the same problem....

Hope we have an answer or explanition for this...


Fernando Crestani
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic