Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.schema;
 
 
 {
     public PrimaryKeyFieldNameResolver()
     {
         super(false);
    }
    @Override
    public boolean accept(Method method)
    {
        return method.isAnnotationPresent(PrimaryKey.class)
                && method.getAnnotation(PrimaryKey.class).value() != null
                && !method.getAnnotation(PrimaryKey.class).value().trim().equals("");
    }
    @Override
    public String resolve(Method method)
    {
        return method.getAnnotation(PrimaryKey.class).value();
    }
New to GrepCode? Check out our FAQ X