BatooOrg/BatooJPA — pull request #72 by asimarslan (2012-11-02 20:45:39+00:00)
Title: fetch strategy

Fetch Strategy implemented, while global MAX_DEPTH is honored , each association is checked agains an annotation metadata like

@Entity
public class City {

@Id
private Integer id;

private String name;

@ManyToOne(fetch = FetchType.EAGER)
@FetchStrategy(FetchStrategyType.JOIN)
private Country country;
...
...
}

possible values;

@FetchStrategy(FetchStrategyType.JOIN)

@FetchStrategy(FetchStrategyType.SELECT)