mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
added test for alias usage
This commit is contained in:
parent
6c7947ef79
commit
6cb088e3cf
@ -80,6 +80,8 @@ public final class Alias {
|
||||
PEntity<D> rv = aliasFactory.<PEntity<D>> getCurrentAndReset();
|
||||
if (rv != null) {
|
||||
return rv;
|
||||
}else if (arg instanceof PEntity<?>){
|
||||
return (PEntity)arg;
|
||||
} else if (arg instanceof ManagedObject) {
|
||||
return (PEntity<D>) ((ManagedObject) arg).__mappedPath();
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user