Skip to content

Using @YawnProjection picks up non-constructor data class val #83

@Nava2

Description

@Nava2

Example data class:

@YawnProjection 
data class Foo(
  val bar: Long,
) { 
  val baz: String = bar.toString()
}

The generated projection class is:

object FooProjection : YawnProjectionRef<Foo, FooProjectionDef<Foo>> {
  public fun <SOURCE : Any> create(
    baz: YawnQueryProjection<SOURCE, String>,
    bar: YawnQueryProjection<SOURCE, Long>,
  )
// ...

Expected projection:

object FooProjection : YawnProjectionRef<Foo, FooProjectionDef<Foo>> {
  public fun <SOURCE : Any> create(
    bar: YawnQueryProjection<SOURCE, Long>,
  )
// ...

computed properties are ignored as they are computed and not provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions