hi Dimka,
Thanks ... u gave me a hint as to how to solve the problem. The .setParam created a 'named parameter not found' error.
It should be just:
.setParameter("an",an);
.setParameter("ln",ln);
That made it work ... unless i am missing something else from your response. Nevertheless, thanks it helped me work it out.
Dimka wrote:
1. String query="from Auction auction where auction.comp_id.auction_number=:auction_number and auction.comp_id.lot_number =:lot_number";
comp_id this is member in Auction and instance of AuctionPk class
2. session.createQuery(query)
.setParameter("comp_id.auction_number", an)
.setParameter("comp_id.lot_number", ln)
.list();[/code]