Well, what is an object? If I go with the supposition that n_tran is an object(lets call the object Tran) and m_process is another object(Process), which Tran holds a collection of, you might do something like this:
select Tran from Tran where Tran.Process.type = "ABCD" and Tran.Process.status = "EFGH"
That would return you a list of Tran objects matching your criteria. You could optimize with joins but Hibernate should be able to get what you have everything appropriately mapped together.
I think this would work fine using a Criteria as well, but I'm not sure of the exact syntax since I'm not sure exactly what you were wanting.
|