Skip to content

Support copying classes that don't have direct dependency #82

@mariobat88

Description

@mariobat88

Not sure if this is planned in some future release, but let me explain my idea.
Usually when I set up my projects the database Entity classes (database module) and the Domain classes (repo module) don't have direct to each other so there is no way for me to annotate the classes with @copy. The way I copy objects is that I write mappers in my datasource layer which has dependency to both database and repositories. This is how I map my objects in a datasource:

fun UserEntity.toUserModel() = UserModel(
   id = id,
)

Is there a way to do that with this library, or is it planned to support something similar?

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