-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Immediate help pls. Need to select list of composite element
PostPosted: Thu Mar 16, 2006 2:58 am 
Newbie

Joined: Mon Apr 11, 2005 11:36 pm
Posts: 1
Location: Dhaka Bangladesh
Immediate help needed please.

I want to select list of composite element

In main object 'A' I have

/**
* @hibernate.list
* table="tab_b"
* @hibernate.collection-composite-element
* class="com.db.B"
* @hibernate.collection-index
* column="idx"
* @hibernate.collection-key
* column="b_id"
*/

Now I am trying simply
"SELECT b from A a LEFT JOIN a.B b where a.id=?"
But It does not works.

javax.servlet.ServletException: could not resolve property: id of: com.db.B

Then I try for

"SELECT new com.db.B( b.lessAmount, b.lessString, "
+ " sllBill ) "
+ " FROM A a LEFT JOIN a.B b "
+ " LEFT JOIN a.bill sllBill "
+ " WHERE a.id = ? ";

But Same problem
javax.servlet.ServletException: could not resolve property: id of: com.db.B

"SELECT new com.db.B( b.lessAmount, b.lessString, "
+ " b.bill ) "
+ " FROM A a LEFT JOIN a.B b "
+ " WHERE a.id = ? ";

It gives no error but give empty list

What should be the way?

Please help me

_________________
nahid
Application Developer
DSi (www.dsinv.com)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.