#1181 - ENH: Add @FetchPreference support - Secondary query generation is based on order of fetch statements

This commit is contained in:
Rob Bygrave committed 2017-11-08 23:19:58 +13:00
1 parent 9b2b2f7787
commit 156f505394
11 files changed
+123 -11

No files matched your search

@@ -73,6 +73,8 @@ public abstract class BeanPropertyAssoc<T> extends BeanProperty {
final String extraWhere;
final int fetchPreference;
boolean saveRecurseSkippable;
/**
@@ -88,6 +90,7 @@ public abstract class BeanPropertyAssoc<T> extends BeanProperty {
this.targetType = deploy.getTargetType();
this.cascadeInfo = deploy.getCascadeInfo();
this.fetchPreference = deploy.getFetchPreference();
}
/**
@@ -109,6 +112,11 @@ public abstract class BeanPropertyAssoc<T> extends BeanProperty {
}
}
@Override
public int getFetchPreference() {
return fetchPreference;
}
/**
* Create a ElPropertyValue for a *ToOne or *ToMany.
*/