This commit is contained in:
Timo Westkämper 2010-02-05 14:29:44 +00:00
parent d32a177276
commit 46f905d9ea
2 changed files with 35 additions and 1 deletions

View File

@ -6,6 +6,8 @@
package com.mysema.query.types.path;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import javax.annotation.Nullable;
@ -35,6 +37,8 @@ public final class PathMetadata<T> implements Serializable{
private final Path<?> parent, root;
private final PathType pathType;
// private transient AnnotatedElement annotatedElement;
PathMetadata(@Nullable Path<?> parent, Expr<T> expression, PathType type) {
this.parent = parent;
@ -83,5 +87,35 @@ public final class PathMetadata<T> implements Serializable{
public boolean isRoot(){
return parent == null;
}
//
// private AnnotatedElement getAnnotatedElement(){
// if (annotatedElement == null){
// if (pathType == PathType.VARIABLE){
// annotatedElement =
// }
// }
// return annotatedElement;
// }
//
// @SuppressWarnings("hiding")
// @Override
// public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
// return getAnnotatedElement().getAnnotation(annotationClass);
// }
//
// @Override
// public Annotation[] getAnnotations() {
// return getAnnotatedElement().getAnnotations();
// }
//
// @Override
// public Annotation[] getDeclaredAnnotations() {
// return getAnnotatedElement().getDeclaredAnnotations();
// }
//
// @Override
// public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
// return getAnnotatedElement().isAnnotationPresent(annotationClass);
// }
}

View File

@ -6,6 +6,6 @@
* document PathBuilder DONE
* document QueryExtensions and QueryMethod
* document QueryExtensions and QueryMethod DONE
* document QuerydslVariables