Skip to content

@Embedded.Empty and @Embedded.Nullable not recognized by annotation processor #118

Description

@czp3009

Using @Embedded.Empty or @Embedded.Nullable on a field produces an incorrect Q class — the embedded properties are not flattened into individual columns. The full form @Embedded(onEmpty = ...) works fine.
Related to #113.

@Table
data class Student(
    @Id
    @Embedded.Empty
    val id: StudentId,
    val description: String,
)

data class StudentId(
    val className: String,
    val studentNumber: String,
)

Actual Q class:

public final SimplePath<StudentId> id = createSimple("id", StudentId.class);
public final StringPath description = createString("description");

Expected Q class:

public final StringPath className = createString("className");
public final StringPath studentNumber = createString("studentNumber");
public final StringPath description = createString("description");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions