• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issue in HQL

 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i am very new Hibernate.

please help me to understand the issue..
query


but iam getting exception


object classes are
CLS.java


CCLS.java


regards
Amitosh
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The composite key mapping in the CLS class is wonky.
Have a look at the Hibernate reference material on the subject.
 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jelle Klap,

i am to resolve the issue .
can you suggest me how can i use criteria for such queries

query i am trying to process is


regrads
Amitosh
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the link Jelle provided.

You cannot have multiple @Id annotations on one @Entity without an @IdClass defined. Alternatively you can define an @EmbeddedId
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic