Joined: Fri Jun 24, 2005 10:40 am Posts: 17				
			 | 
			
				
				
					| 
					
						 Our domain is a hierarchy of
 
 Scorecard
    Scorecards( can have one to many)
       Measure(can have one to many)
         KeyPerformanceIndicator
 
 Each object at every level has a versioned id(a generated string and a version) and a set of effective dates.  When this hierarchy is to be retrieved, the hierachy is to be built so each defintion is the max version based on the effective dates. My question is which construct would be the best way to build my query HQL or criteria? 
					
  
						
					 | 
				 
				 
			 |