Hi, I have a domain object say, SalesOrder which has a composite id called id, made of salesOrder id and repid which is contained in another class called SalesOrderID(which is serializable and implements equals and hashcode)
my question is when i want to query SalesOrder, session.createSQLQuery("FROM SalesOrder where id=:soID")
and soID is populated with salesorder id and repid. this failes no matter what.
can anyone please help me?
thanks