APT generates invalid code for a field which is an interface type
Hi,
I noticed when an entity contains a field which is an interface, a . is prefixed before the interface field declaration in the generated source. This issue also appears when you have java.sql.Blob or Clob fields (which are interfaces).
I would be great to have some kind of an @ignore annotation (without making the field transient) , to have such fields being skipped by the APT processor.
e.g.
import com.mysema.
interface SomeInterface {
}
@Entity
public class InterfaceBug {
private SomeInterface someInterface;
public void setSomeInterfac
this.
}
public SomeInterface getSomeInterface() {
return someInterface;
}
}
generates (notice the . ):
import com.mysema.
/**
* MetadataInterfa
*
*/
public class MetadataInterfa
public static final MetadataInterfa
public .MetadataSomeIn
public .MetadataSomeIn
if (someInterface == null) someInterface = new .MetadataSomeIn
return someInterface;
}
public MetadataInterfa
}
public MetadataInterfa
super(cl, "InterfaceBug", path);
}
public MetadataInterfa
super(
}
}
Thanks in advance !
Filip
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Querydsl Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: