mysema/querydsl — Issue #114: APT processor general issue
Author: 7uc0
Created: 2012-03-09 09:28:13+00:00
State: open

Hi there,

Following @embeddable element leads to missing identifier

Source

```

@Embeddable
public class FileAttachment {

@Transient
Object model;

@Transient
String name;

@Transient
File f;

public String filename;
}

```

generated QFileAttachement :

````

package play.db.jpa;

import static com.mysema.query.types.PathMetadataFactory.*;

import com.mysema.query.types.*;
import com.mysema.query.types.path.*;

import javax.annotation.Generated;

/**
* QFileAttachment is a Querydsl query type for FileAttachment
*/
@Generated("com.mysema.query.codegen.EmbeddableSerializer")
public class QFileAttachment extends BeanPath {

private static final long serialVersionUID = -1147555192;

public static final QFileAttachment fileAttachment = new QFileAttachment("fileAttachment");

public final ComparablePath = createComparable("", java.io.File.class);

public final StringPath filename = createString("filename");

public final BooleanPath set = createBoolean("set");

public QFileAttachment(String variable) {
super(FileAttachment.class, forVariable(variable));
}

public QFileAttachment(Path entity) {
super(entity.getType(), entity.getMetadata());
}

public QFileAttachment(PathMetadata metadata) {
super(FileAttachment.class, metadata);
}

}

```

and lead to following error at compilation time :

```
expected

public final ComparablePath = createComparable("", java.io.File.class);

```